On Sun, 16 Nov 2003 23:24:29 -0800, R. Joseph Newton wrote: > If you want to round, use: > my $rounded = int ($float_value + 0.5);
...which only works if you have a positive number. You must make it a bit more foolproof; my $rounded = ($nr > 0) ? int($nr + 0.5) : int($nr - 0.5); -- Tore Aursand <[EMAIL PROTECTED]> -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]