Hello,

i am not at all a mathematic/calculus wonder and would therefore like
some help with the following.
I need to round numbers up or down to a certain step size. As an example:

nVal = 100,1
nStep = 0,15
outcome = 225,15

nVal = 100,35
nStep = 0,5
outcome = 100,5

nVal = 100,175
nStep = 0,125
outcome = 100,125

I just havent got a clue on how to approach this problem. Can somebody
shed some light on a possible way to go?

Thank you,

Jiri


_______________________________________________
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Reply via email to