My problem statement is : I need to store money values exact up to 2 decimal places.
Representing in whole cents (int64) seems to be an option. Can someone share if there is any other way to deal with money values in golang? maybe, a reliable datatype alternative.
Thanks
Thanks for reply.
I get it yes float is not an option, esp. where bigger transactions are involved.
I was looking into some better substitute to using integer