mirror of https://github.com/ppy/osu
Round to integral units
The rounding matches the implementation of `PerformancePointsCounter`.
This commit is contained in:
parent
3dc2408965
commit
ef22b6b1a8
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue