[TIB] Re: round


[Prev][Next][Index][Thread]

[TIB] Re: round




Easy
Divide input by 25
Round()
Then multiply by 25

In a message dated Sat, 07 Sep 2002 22:59:32 +0200, jonas@cytech.nu writes:

> 
> 
> 
> How do I do to round() to the nearest 25?
> 
> As in:
> 
> Input : 12
> Output: 0
> 
> Input : 30
> Output: 25
> 
> Input : 117
> Output: 125
> 
> Input : 380
> Output: 375
> 
> Input : 711
> Output: 700
> 
> Input : 989
> Output: 1000
> 
> /jonas