Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re: Issue while reading decimal number from a Spreadsheet using perl

by rjt (Curate)
on Oct 21, 2019 at 08:16 UTC ( [id://11107749]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    S Exponent        Mantissa
    - -------- -----------------------
    1 10000010 01000011001100110011010
    - 130 => 3 (1/1) + 0/2 + 1/4 + 0/8 + 1/16 + 1/32 + ... ~ 1.26250004768
    +37158
    
  2. or download this
    use Math::Round;
    printf "%s == %s\n", nearest(0.01, 7.525), 
                         nearest(0.01, 6.02 * 1.25); # 7.53 == 7.53
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others having a coffee break in the Monastery: (9)
As of 2024-04-19 08:49 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found