Skip to content

Commit

Permalink
fix: Rounup to 2 digits
Browse files Browse the repository at this point in the history
  • Loading branch information
cyperdark committed Feb 19, 2024
1 parent 5b85e0f commit 7143011
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/tosu/src/entities/BeatmapPpData/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import path from 'path';

import { BeatmapStrains } from '@/api/types/v1';
import { DataRepo } from '@/entities/DataRepoList';
import { fixDecimals } from '@/utils/converters';

import { AbstractEntity } from '../AbstractEntity';

Expand Down Expand Up @@ -224,7 +225,7 @@ export class BeatmapPPData extends AbstractEntity {

for (const acc of [100, 99, 98, 97, 96, 95]) {
const performance = currAttrs.acc(acc).performance(beatmap);
ppAcc[acc] = performance.pp;
ppAcc[acc] = fixDecimals(performance.pp);
}

const calculation_time = performance.now();
Expand Down

0 comments on commit 7143011

Please sign in to comment.