All calculations with currency values and amounts should be computed and stored using integer arithmetic only, as opposed to floating point, which can lead to round off errors.
BitCoin is divisible to the 8th decimal point and could be expanded in the future. Integer-only transactions won't work.