Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re^6: Change decimal point temporarily

by lima1 (Curate)
on Aug 03, 2010 at 00:32 UTC ( [id://852574]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    perl -we 'use POSIX; use locale; setlocale LC_NUMERIC, "fr_FR"; $x = "
    +123,45"; $x+=0.1; print $x; setlocale LC_NUMERIC, ""; $x += 0.1; prin
    +t $x;'
    
  2. or download this
    perl -we 'use POSIX; use locale; setlocale LC_NUMERIC, "fr_FR"; $x = "
    +123,45";  print $x; setlocale LC_NUMERIC, ""; $x += 0.1; print $x;'
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others taking refuge in the Monastery: (4)
As of 2024-04-24 05:29 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found