in reply to Re: Math::BigFloat and zero
in thread Math::BigFloat and zero
Yes, that's exactly what it does.
What I'm trying to work out is why it stores 0 as '0E1' if it stringifies to '0'? DBI functions return zero as '0E0' so that it becomes 'true' in a boolean context, but if you evaluate a Math::BigFloat zero in a boolean context it becomes 'false'. So why not just store it internally as '0'? What is gained by storing as '0E1'?
My second question is why use '0E1' instead of the more usual '0E0'? They both become 0 in a numerical context and stringify to '0'.
-- iakobski
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Math::BigFloat and zero
by JavaFan (Canon) on Sep 24, 2010 at 13:23 UTC | |
|
Re^3: Math::BigFloat and zero
by Anonymous Monk on Sep 24, 2010 at 06:56 UTC | |
by iakobski (Pilgrim) on Sep 24, 2010 at 12:42 UTC | |
by JavaFan (Canon) on Sep 24, 2010 at 13:29 UTC |