if (sprintf('%.2f', $dollar1) ne sprintf('%.2f', $dollar2)) { print "$dollar1 != $dollar2\n"; }