I needed to format a number and I just discovered that in spanish if the number 12345.67 it will print 12.345,67 cool but if the number is 1234.56 it will print 1234,56 not cool, it should be: 1.234,56, still looking a way to do it without regex
Hello Tony. I am replying late, I guess, but I should. haha What language locale are you converting from, and to?
No problem, I read this: stackoverflow.com/questions/589913..., so it's an expected behaviour
Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink.
Hide child comments as well
Confirm
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
I needed to format a number and I just discovered that in spanish if the number 12345.67 it will print 12.345,67 cool but if the number is 1234.56 it will print 1234,56 not cool, it should be: 1.234,56, still looking a way to do it without regex
Hello Tony. I am replying late, I guess, but I should. haha
What language locale are you converting from, and to?
No problem, I read this: stackoverflow.com/questions/589913..., so it's an expected behaviour