Adrian Trantino
Member
Hi Guys,
When using a float to display a sales total I am using this to round the amount.
StoreTotal=Round(StoreTotal * 100) / 100
It seems to work fine until I get a 0 in the last decimal place so 99.99 works fine, however 99.90 will display as 99.9
When I was using a float also with this StoreTotal=Round(StoreTotal * 100) / 100 it would display two decimal places perfectly when I would run in breakpoints, however as soon as the breakpoints were removed it would display all the decimals.
When using a float to display a sales total I am using this to round the amount.
StoreTotal=Round(StoreTotal * 100) / 100
It seems to work fine until I get a 0 in the last decimal place so 99.99 works fine, however 99.90 will display as 99.9
When I was using a float also with this StoreTotal=Round(StoreTotal * 100) / 100 it would display two decimal places perfectly when I would run in breakpoints, however as soon as the breakpoints were removed it would display all the decimals.