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
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With