I know this is perl not javascript, I thought I was good at deciphering reg ex but the 2nd line in this function has got me puzzled. Can anyone decipher: X = (!X ? 2 : X);
function round(number,X) {
> // rounds number to X decimal places, defaults to 2 > X = (!X ? 2 : X); > return Math.round(number*Math.pow(10,X))/Math.pow(10,X); > }
thanks lori
_______________________________________________ Perl-Win32-Users mailing list Perl-Win32-Users@listserv.ActiveState.com To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs