Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re^4: Variables are automatically rounded off in perl

by Anonymous Monk
on Jul 26, 2016 at 07:14 UTC ( [id://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

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?Last hourOther CB clients
Other Users?
Others studying the Monastery: (6)
As of 2024-03-28 15:32 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found