S
Sophie
Salutations
I am having big problems with the format of numbers in txtboxes. Here is my
situation using easy numbers: 4 txtboxes accept numerical values. Their
table has Format Property 0.000 and Decimal Places 3. A 5th txtbox shows
the sum, like the column at left. Now, I need to be able to stop workers
from entering, say 3.9999. When they do, we get the column at right.
5.000 5.000
3.999 4.000
1.000 1.000
2.000 2.000
--------- --------
11.999 12.000
I know this sounds dumb, but the 'groundrules' over which I have no control
are that ONLY 3 decimals are allowed and NO ROUNDING is to take place.
***So, entering 3.999999999999 must just give 3.999. Also, I don't mean that
just 3 decimals are displayed and the others aren't, but that the actual
value of the number is 3.999 (no other non-zero decimals, showing or not).
This is important because these values are used in subsequent calculations.
I can actually 'fake' the result using strings, but I need these values to
be numbers.
I am having big problems with the format of numbers in txtboxes. Here is my
situation using easy numbers: 4 txtboxes accept numerical values. Their
table has Format Property 0.000 and Decimal Places 3. A 5th txtbox shows
the sum, like the column at left. Now, I need to be able to stop workers
from entering, say 3.9999. When they do, we get the column at right.
5.000 5.000
3.999 4.000
1.000 1.000
2.000 2.000
--------- --------
11.999 12.000
I know this sounds dumb, but the 'groundrules' over which I have no control
are that ONLY 3 decimals are allowed and NO ROUNDING is to take place.
***So, entering 3.999999999999 must just give 3.999. Also, I don't mean that
just 3 decimals are displayed and the others aren't, but that the actual
value of the number is 3.999 (no other non-zero decimals, showing or not).
This is important because these values are used in subsequent calculations.
I can actually 'fake' the result using strings, but I need these values to
be numbers.