Or this (rounds up for > .5): $int = int $num + $num =~ /\.[5-9]/;
-- John.
In reply to Re: Decimal Removal by jmcnamara in thread Decimal Removal by Anonymous Monk