in reply to Negative zero? There's gotta be a sprintf that undoes that, right?

use Math::BigFloat to properly round your number, then printf with work correctly.
#!/usr/bin/perl use warnings; use strict; use Math::BigFloat; my $num = Math::BigFloat->new("-0.000004"); $num->bfround(5); printf "%f\n", $num;
  • Comment on Re: Negative zero? There's gotta be a sprintf that undoes that, right?
  • Download Code