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

Re^4: Variables are automatically rounded off in perl

by Anonymous Monk
on Jul 26, 2016 at 07:14 UTC ( #1168541=note: print w/replies, xml ) Need Help??


in reply to Re^3: Variables are automatically rounded off in perl
in thread Variables are automatically rounded off in perl

Rounding comes from mathematical operations not "print", see http://stackoverflow.com/questions/661562/how-to-format-a-float-in-javascript

  • Comment on Re^4: Variables are automatically rounded off in perl

Replies are listed 'Best First'.
Re^5: Variables are automatically rounded off in perl
by Anonymous Monk on Jul 26, 2016 at 10:16 UTC

    Yes, exactly. The topic under discussion here is float to string conversion. Perhaps the OP choice of title words "rounded off" was somewhat unfortunate. Perhaps "double roundup" would've been more accurate. See roundup.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (4)
As of 2023-03-28 01:57 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Which type of climate do you prefer to live in?






    Results (66 votes). Check out past polls.

    Notices?