Jay Savage wrote:
> 
> You're right, the mantissa may have leading zeros. Good catch. I need
> to keep them, though, or any later math will be off by multiple powers
> of ten. I'd completely missed that on the first go-around, but what I
> really need is
> 
> $x = sprinf "%u.%s", $int, $mantissa;

I think what you you really need is

  $x = sprintf "%s.%s", $int, $mantissa;

or really

  $x = "$int.$mantissa";

Get over it :)

Rob

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/


Reply via email to