Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

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

by rjt (Curate)
on Oct 21, 2019 at 08:16 UTC ( #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
Node Status?
node history
Node Type: note [id://11107749]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (5)
As of 2020-04-04 09:44 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    The most amusing oxymoron is:
















    Results (32 votes). Check out past polls.

    Notices?