Re: Decimal numbers

2002-04-15 Thread Johannes Franken
* Ho, Tony <[EMAIL PROTECTED]> [2002-04-15 12:15 +0200]: > If I read a value of 123.456 and I would like to print this value out as > 123456 (without decimals), how can I go about it without doing any > multiplication ? $value=~y/.//d; -- Johannes Franken Professional unix/network development

Re: Decimal numbers

2002-04-15 Thread Jonathan E. Paton
> Hi guys > I was wondering if you could help me. > If I read a value of 123.456 and I would like to print this value out as > 123456 (without decimals), how can I go about it without doing any > multiplication ? $number =~ tr'.''d; # Use transliteration to delete the dot. There are of course ot