Re: Math::BigFloat

2007-04-26 Thread Somu
Thanks. I got that corrected. Actually, in my code, $n wasnt a Math::BigFloat OBJECT. On 4/25/07, Rob Dixon <[EMAIL PROTECTED]> wrote: Somu wrote: > On 4/25/07, Tom Phoenix <[EMAIL PROTECTED]> wrote: >> >> On 4/24/07, Somu <[EMAIL PROTECTED]> wrote: >>> >>> I'm unable to compare numbers using th

Re: Math::BigFloat

2007-04-25 Thread Rob Dixon
Somu wrote: On 4/25/07, Tom Phoenix <[EMAIL PROTECTED]> wrote: On 4/24/07, Somu <[EMAIL PROTECTED]> wrote: I'm unable to compare numbers using the module. Actually i can only use it to create numbers like 0 or inf or 1 or their negatives. But i dont know how to use their methods. Bcoz the exa

Re: Math::BigFloat

2007-04-25 Thread Chas Owens
On 4/25/07, Somu <[EMAIL PROTECTED]> wrote: Actually the following isnt working: use Math::BigFloat; $n = 0; if ($n->is_zero()) {print 'you entered zero'} snip Umm, that is because $n is not a Math::BigFloat. Math::BigFloat is not a pragma, it is a class that overloads the math operators s

Re: Math::BigFloat

2007-04-25 Thread Somu
Actually the following isnt working: use Math::BigFloat; $n = 0; if ($n->is_zero()) {print 'you entered zero'} On 4/25/07, Tom Phoenix <[EMAIL PROTECTED]> wrote: On 4/24/07, Somu <[EMAIL PROTECTED]> wrote: > I'm unable to compare numbers using the module. Actually i can only > use it to creat

Re: Math::BigFloat

2007-04-24 Thread Tom Phoenix
On 4/24/07, Somu <[EMAIL PROTECTED]> wrote: I'm unable to compare numbers using the module. Actually i can only use it to create numbers like 0 or inf or 1 or their negatives. But i dont know how to use their methods. Bcoz the examples in the doc aren't working. Can i get some simple examples?