Re: [fpc-pascal] real numbers infinity

2006-04-13 Thread Dimitrios Apostolou
Jonas Maebe wrote: SetExceptionMask([exDenormalized,exOverflow,exPrecision]); Thank you all for your answers, that will do just fine! Too bad though that it not that obvious in the documentation, which I browsed for many hours before posting to this list. Thank you, Dimitris _

Re: [fpc-pascal] real numbers infinity

2006-04-12 Thread Jonas Maebe
On 11 apr 2006, at 01:45, Dimitrios Apostolou wrote: when a real number overflows the program halts with EInvalidOp error. How can I make the program behave the more standard way, where the variable gets the value "inf" and execution continues normally? I'm not sure if overflow immediate

Re: [fpc-pascal] real numbers infinity

2006-04-11 Thread Sasa Zeman
> Thank you very much, this solves the problem though I think that > performance-wise it is not optimal. What is the reason for freepascal > being not IEEE-spec compliant? Is it backwards compatibility? FPC is IEEE-spec compliant, since all computer follow up floating point standard. It should fol

Re: [fpc-pascal] real numbers infinity

2006-04-11 Thread Florian Klaempfl
Dimitris Apostolou wrote: >>> when a real number overflows the program halts with EInvalidOp error. >>> How can I make the program behave the more standard way, where the >>> variable gets the value "inf" and execution continues normally? This > is >>> vital for many tasks, like fractal computatio

Re: [fpc-pascal] real numbers infinity

2006-04-11 Thread Dimitris Apostolou
> > when a real number overflows the program halts with EInvalidOp error. > > How can I make the program behave the more standard way, where the > > variable gets the value "inf" and execution continues normally? This is > > vital for many tasks, like fractal computation. > > You can use try..exc

Re: [fpc-pascal] real numbers infinity

2006-04-10 Thread Sasa Zeman
Dimitris, > when a real number overflows the program halts with EInvalidOp error. > How can I make the program behave the more standard way, where the > variable gets the value "inf" and execution continues normally? This is > vital for many tasks, like fractal computation. You can use try..excep