cnfsstat rounding trouble
cbiedl at gmx.de
Sun May 23 17:23:11 UTC 2004
Heath Kehoe wrote...
> The variables $free, $len, and $val are BigInts; and perl doesn't
> convert their values to floating point automatically for division.
> I believe that when you eval() a BigInt, perl converts it to a
> regular number value (either an integer or a float) with some loss
> of accuracy. But it's not explicitly documented in the BigInt docs,
> so I'm not sure we should rely on it.
accuracy loss shouldn't be a problem for integer numbers, isn't it?
A shorter way was to do
| $free = "$free";
More information about the inn-workers