in reply to Rounding Variables

Try this:
$roundeddistance = int($distance*100)/100;
(assuming you want it rounded down, and not padded with zeroes. If not, see $code or die's suggestion below)

Replies are listed 'Best First'.
RE: Re: Rounding Variables
by Anonymous Monk on Oct 09, 2000 at 20:10 UTC
    Perfect.. thanks for the lightning fast help
    -Dipul