Round to integral units

The rounding matches the implementation of `PerformancePointsCounter`.
This commit is contained in:
Dan Balasescu 2024-11-01 22:40:00 +09:00
parent 3dc2408965
commit ef22b6b1a8
No known key found for this signature in database
1 changed files with 1 additions and 1 deletions

View File

@ -229,7 +229,7 @@ private LocalisableString getValueString(BeatmapAttribute attribute)
return (starDifficulty?.Stars ?? 0).ToLocalisableString(@"F2");
case BeatmapAttribute.MaxPP:
return (starDifficulty?.PerformanceAttributes?.Total ?? 0).ToLocalisableString(@"F2");
return Math.Round(starDifficulty?.PerformanceAttributes?.Total ?? 0, MidpointRounding.AwayFromZero).ToLocalisableString();
default:
return string.Empty;