揮発性のメモ2

http://d.hatena.ne.jp/iww/

2008-10-28から1日間の記事一覧

perlでprintfによる四捨五入はNG

printf "%.2f",$ARGV[0]; $ ./marume.pl 0.005 0.01 $ ./marume.pl 0.015 0.01 $ ./marume.pl 0.025 0.03 $ ./marume.pl 0.01500000000000001 0.02このくらいは許容範囲 $ ./marume.pl 1111111111111111.15 1111111111111111.25 $ ./marume.pl 1111111111111…