D
Darrell Childress
I'm trying to round a number to the nearest 1/4. My best stab at it
would be to take the Integer of a number Int(Mynumber) and then take the
decimal part of the number (I don't know how to do that) and then use
nested If statements to find the nearest 0.25. Then, I would add the
results of those 2 calculations. My question is, is there a better more
direct way to do this and what is the syntax for getting the decimal
part of a number?
Thanks,
Darrell
would be to take the Integer of a number Int(Mynumber) and then take the
decimal part of the number (I don't know how to do that) and then use
nested If statements to find the nearest 0.25. Then, I would add the
results of those 2 calculations. My question is, is there a better more
direct way to do this and what is the syntax for getting the decimal
part of a number?
Thanks,
Darrell