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

FlxStringUtil: bugfix on formatMoney #2011

Merged
merged 1 commit into from
Dec 12, 2016
Merged

Conversation

sebbernery
Copy link
Contributor

The current behavior add a "0" if decimal part is inferior to 10, but append it after the decimal part. It should be appended before the decimal part.
Example: when using on numbers like 4.0312, formatMoney returned "4.30". The expected value was "4.03".

When using on numbers like 4.0312, formatMoney returned 4.30. The expected value was 4.03.
@Beeblerox Beeblerox merged commit 7af6ba4 into HaxeFlixel:dev Dec 12, 2016
@Beeblerox
Copy link
Member

@sebbernery you're totally right. Thanks for pull request!

Gama11 added a commit that referenced this pull request Dec 21, 2016
@Gama11 Gama11 added the Bug label Apr 26, 2017
Aurel300 pushed a commit to larsiusprime/haxeflixel that referenced this pull request Apr 18, 2018
When using on numbers like 4.0312, formatMoney returned 4.30. The expected value was 4.03.
Aurel300 pushed a commit to larsiusprime/haxeflixel that referenced this pull request Apr 18, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants