Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

(jeffa) 3Re: Eliminating Trailing Zeros

by jeffa (Bishop)
on Jul 17, 2003 at 15:19 UTC ( [id://275244]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    $n = reverse scalar sprintf("%2.4f",$n);
    $n =~ s/^0+//g;
    $n = reverse scalar $n;
    $n =~ s/\.$//g;
    
  2. or download this
    $n = reverse scalar sprintf("%2.4f",$n);
    $n =~ s/^0+\.?//g;
    $n = reverse scalar $n;
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://275244]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others avoiding work at the Monastery: (4)
As of 2024-04-24 12:02 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found