Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re^5: Padding with sprintf changing number

by BillKSmith (Monsignor)
on Sep 24, 2021 at 17:11 UTC ( [id://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,