If you just store cents you can't represent them. You either have to guess at the beginning the smallest unit or store the precision along with it.
Just use strings, it's much simpler.
If you just store cents you can't represent them. You either have to guess at the beginning the smallest unit or store the precision along with it.
Just use strings, it's much simpler.