Hi All,
I have a calculated text box that displays a currency value to 2 decimal places.
I need to make this truncate (e.g. $87.679 = $87.67)
Does anyone know how?
The only thing I can think of is to -0.005 from the text box result. This would always make it round down, which acheives the truncation I need.
But! As I understand it, access handles decimal fractions ending in 5 so that half round up and half round down.
So if I try and force my numbers to rounddown, by substracting 0.005 from them, I will encounter a problem when the decimal fraction ends in 0, half of them will uneccesarilly round down the the next digit.
Does anyone have a solution for this?
Mike
I have a calculated text box that displays a currency value to 2 decimal places.
I need to make this truncate (e.g. $87.679 = $87.67)
Does anyone know how?
The only thing I can think of is to -0.005 from the text box result. This would always make it round down, which acheives the truncation I need.
But! As I understand it, access handles decimal fractions ending in 5 so that half round up and half round down.
So if I try and force my numbers to rounddown, by substracting 0.005 from them, I will encounter a problem when the decimal fraction ends in 0, half of them will uneccesarilly round down the the next digit.
Does anyone have a solution for this?
Mike