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

Re^5: Padding with sprintf changing number

by BillKSmith (Monsignor)
on Sep 24, 2021 at 17:11 UTC ( #11136997=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    use strict;
    use warnings;
    ...
    
    print "\n\nNot quite an integer\n";
    amnt(488715 - 4e-10);
    
  2. or download this
    EXACT integer
    488715 i m checking amount before padding,
    ...
    Not quite an integer
    488715 i m checking amount before padding,
    0000000000488714 i m checking amount after padding,
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (4)
As of 2022-05-24 16:34 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Do you prefer to work remotely?



    Results (84 votes). Check out past polls.

    Notices?