like lets say I am making software using Euros, and then I calculate some percentage from the sum, which could result for example 12.3456
Since Euros go only to two digits, I would naturally want to do Round(Eur), only up to two digits, making it become 12.35.
This can of course be done by the following:
Code: Select all
EURsum = Round(EURsum * 100)
EURsum = EURsum / 100
Code: Select all
RoundToDigits(EURsum, 2)