in reply to Re: Re: Dividing and format with regular expression the perl way
in thread Dividing and format
But that requires 3 characters, and I am just too lazy. Besides there is an assumption that whatever passed in is a floating point.$num =~ s/\.(\d)\d+/.$1/; # perform the rounding (as string)
|
|---|