This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
This function will take (almost) any string representing a monetary amount and parse it correctly as a float. | |
Thousand seperator can be '.' or ',' | |
Decimal point can be '.' or ',' | |
Currency symbols etc. will be removed | |
The following strings will all parse to (float) 1250.99: | |
1250.99 | |
1,250.99 | |
1.250,99 | |
€1.250,99 |