slaven rezic tqcsubrezicde zefram writes wes james wrote python get perl probably rounding decimal output try perl printf 60fn _ foreach 01 1110 101100 321320 801800 youll see five different values 01 try equivalent python expect youll get similar results get results perl5100 e printf 60fn _ foreach 01 1110 101100 321320 801800 0100000000000000005551115123125782702118158340454101562500000 0100000000000000088817841970012523233890533447265625000000000 0099999999999999644728632119949907064437866210937500000000000 0100000000000001421085471520200371742248535156250000000000000 0099999999999994315658113919198513031005859375000000000000000 python24 c print60fn60fn60fn60fn60f 01 1110 101100 321320 801800 0100000000000000005551115123125782702118158340454101562500000 0100000000000000088817841970012523233890533447265625000000000 0099999999999999644728632119949907064437866210937500000000000 0100000000000001421085471520200371742248535156250000000000000 0099999999999994315658113919198513031005859375000000000000000 slaven rezic slaven rezic de tksm perltk program searching replacing multiple files httpptktoolssourceforgenettksm thu 07 aug 2008 214634 0100 perl 47285 rounding error subtraction