I am computing a value based on a %. If I round and the answer is say 100.125 the result is 100.12 instead of 100.13.
If I add 0.005 I will get the correct value for this, but if I get an answer of say 100.3848 and I round it after adding the .005, my answer is wrong.
My problem would be solved if I could test the number of digits after teh decimal place.
using the right(Cinput, 1) function to test the last decimal, it returns either the 2nd, 3rd or 4th digits depending on how many decimal places there are.
Any help would be appreciated
If I add 0.005 I will get the correct value for this, but if I get an answer of say 100.3848 and I round it after adding the .005, my answer is wrong.
My problem would be solved if I could test the number of digits after teh decimal place.
using the right(Cinput, 1) function to test the last decimal, it returns either the 2nd, 3rd or 4th digits depending on how many decimal places there are.
Any help would be appreciated