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

Projects
None yet
4 participants
@PabstMirror
Contributor

PabstMirror commented Dec 9, 2015

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

This comment has been minimized.

Show comment
Hide comment
@commy2

commy2 Dec 9, 2015

Contributor

👍

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
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

Merge pull request #214 from CBATeam/fixNegativeFormatNumberDecimals
Fix FormatNumber Decimals with Negative Numbers

@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