#!/usr/bin/perl use warnings; use strict; use Math::BigFloat; my $num = Math::BigFloat->new("-0.000004"); $num->bfround(5); printf "%f\n", $num;
In reply to Re: Negative zero? There's gotta be a sprintf that undoes that, right?
by bass_warrior
in thread Negative zero? There's gotta be a sprintf that undoes that, right?
by rgiskard
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |