[Solved] Converting float to int effectively
[ad_1] Avoid changing the type used to represent money as done here between float and int. float totalAmount; int totalAmountCents; … totalAmountCents = totalAmount * 100; Money has special issues involving exactness, range and functions that do not simply apply to integers like complex tax and interest rate calculations. These issues are aggravated with casual … Read more