How do I Trim a decimal from 57.3242456436543 to 57.324?
Posted on 2005-03-02
How do I trim a decimal to only 3 significant places?
I do the calculation:
Speed = Distance / ElapsedTime
and I might get 57.3242456436543 for example.
Then, as the very next line of code, I have:
Now, when I display Speed, has that number been rounded (meaning anytime I reference Speed it is 57.324, until it is recalculated), or should I do it within the calculation?
Unfortunately, I can't test this, and I won't be able to until tomorrow. That is why I am asking you experts in hopes that you can test it for me. This is fairly urgent so I'm putting up 500points.
Thanks in advance!!!