Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Re^2: Help me make a test case for Math::BigFloat

by fizbin (Chaplain)
on Mar 07, 2006 at 02:37 UTC ( [id://534814]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    #!perl
    use Math::BigFloat;
    ...
                 (new Math::BigFloat("10")**(new Math::BigFloat("17")))));
    # Properly prints "0"
    # (well, something like 7e-17 would be closer, but I'll accept 0)
    
  2. or download this
    #!perl
    use bignum;
    ...
           exp(new Math::BigFloat("-7") /
                 (new Math::BigFloat("10")**(new Math::BigFloat("17")))));
    # Incorrectly prints "1"
    
  3. or download this
    @/=map{[/./g]}qw/.h_nJ Xapou cets krht ele_ r_ra/;
    map{y/X_/\n /;print}map{pop@$_}@/for@/
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://534814]
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: (3)
As of 2024-04-19 22:26 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found