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

Re: convert output from exponentional notation to normal

by rjt (Deacon)
on Mar 19, 2013 at 22:28 UTC ( #1024395=note: print w/ replies, xml ) Need Help??


in reply to convert output from exponentional notation to normal

Bignum will probably do what you want with minimum fuss.

use 5.012; use bignum; say 1/18690250981623985612839659816239856; __END__ Output: 0.00000000000000000000000000000000005350382940192655191511204088952992 +471243

You will probably want to read up on bignum for options on how to control accuracy and precision (more info in the related Math::BigInt). These libraries support arbitrary precision, within the limits of available memory, that is.


Comment on Re: convert output from exponentional notation to normal
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others surveying the Monastery: (11)
As of 2015-07-06 20:59 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (83 votes), past polls