Re: [fpc-pascal] Floating point miscalculations on PowerPC

2010-03-13 Thread Jonas Maebe
On 13 Mar 2010, at 12:30, Tobias Giesen wrote: > I'm using FPC 2.2.4 (ppcppc) to create a PowerPC app with Lazarus. It's > running under Rosetta on an Intel Mac. Note that hardware exceptions cannot be handled by FPC when running under Rosetta. > Simple floating point operations like this resu

[fpc-pascal] Floating point miscalculations on PowerPC

2010-03-13 Thread Tobias Giesen
Hello, I'm using FPC 2.2.4 (ppcppc) to create a PowerPC app with Lazarus. It's running under Rosetta on an Intel Mac. Simple floating point operations like this result in wrong code that creates wrong results: --- var it:Int64; dt:TDateTime begin it:=ANumber; dt:Trunc(it/