This should have been simple:
strconv.Atoi("1250000.0000")
This results in an error:
0 strconv.ParseInt: parsing "1250000.0000": invalid syntax
Any clues?
This should have been simple:
strconv.Atoi("1250000.0000")
This results in an error:
0 strconv.ParseInt: parsing "1250000.0000": invalid syntax
Any clues?
Atoi
works only for strings that can be parsed as integers.
What you need is parseFloat