Fix FormatNumber Decimals with Negative Numbers #214

Merged
merged 1 commit into from Dec 11, 2015

Projects

None yet

4 participants

@PabstMirror
Contributor

Before:
[-12.75,0,3] call CBA_fnc_formatNumber; = "-12.-8-50"
[-0.12345,1,5] call CBA_fnc_formatNumber; = "-0.-2-3-4-5-5"

@PabstMirror PabstMirror added the Bug Fix label Dec 9, 2015
@commy2
Contributor
commy2 commented Dec 9, 2015

👍

It's a bit strange how it rounds upwards negative numbers ending with 5, but that seems to be consistent with what the game does anyway.

[-1.25,0,1] call cba_fnc_formatNumber
-> "-1.2"

round -12.5
-> -12
@Killswitch00 Killswitch00 merged commit f2f0149 into master Dec 11, 2015
@Killswitch00 Killswitch00 deleted the fixNegativeFormatNumberDecimals branch Jan 9, 2016
@ViperMaul ViperMaul modified the milestone: 2.2.1 Jan 18, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment