CitectVBA Programming
Reference >
Understanding
CitectVBA Language Basics > Numbers > Random rounding

Random rounding

Even banker's rounding can bias totals. You can take an extra step to remove bias by rounding .5 up or down in a truly random fashion. This way, even if the data is deliberately biased, bias might be minimized. However, using random rounding with randomly distributed data might result in a larger bias than banker's rounding. Random rounding could result in two different totals on the same data.

CitectVBA does not have a function for random rounding.