Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re^6: Change decimal point temporarily

by lima1 (Curate)
on Aug 03, 2010 at 00:32 UTC ( #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? | Other CB clients
Other Users?
Others pondering the Monastery: (6)
As of 2021-11-30 14:28 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?