Are you saying that you want to round off the number of digits to the right of the decimal point? If so then try this:
[pascal]Val := 10.009;
roundedValue := StrToFloat(FormatFloat('#.##', Val));[/pascal]
roundedValue will return 10.01. Just use the proper number of #s you want after the decimal point. There is faster ways of rounding off floating point values though. I wouldn't reccomend using this in a game where code speed is a priority.