JavaScript parseFloat in Different Cultures

parseFloat doesn’t use your locale’s definition, but the definition of a decimal literal.

It only parses . not ,

I’m brazilian and I have to replace comma with dot before parsing decimal numbers.

parseFloat specification

Leave a Comment