The first part is easily done with a simple division
code:
$a=1755
$b=$a/100*100
[code]
or a combination of this and ROUND(). However, the second part is more complicated, but you could work with fractions in this case[code]
$a=1755
$b=$a/50*50

for a special case of 50, Others would be doable, too, but requires more logic.

[ 14. March 2003, 21:25: Message edited by: sealeopard ]
_________________________
There are two types of vessels, submarines and targets.