Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix FormatNumber Decimals with Negative Numbers #214

Merged
merged 1 commit into from
Dec 11, 2015

Conversation

PabstMirror
Copy link
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"

@commy2
Copy link
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 added a commit that referenced this pull request Dec 11, 2015
Fix FormatNumber Decimals with Negative Numbers
@Killswitch00 Killswitch00 merged commit f2f0149 into master Dec 11, 2015
@Killswitch00 Killswitch00 deleted the fixNegativeFormatNumberDecimals branch January 9, 2016 20:14
@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
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants