Re: [fpc-pascal] modulo of negative dividend

2010-03-13 Thread Adriaan van Os
Flávio Etrusco wrote: 2010/3/13 Martín Marqués : I'm checking the mod binary operator, and I found out that if the dividend is negative, it gives a negative result. AFAIK, mod gives an integer between 0 and d-1, where d is the divisor. Isn't this the right behavior? -- Martín Marqués This is

Re: [fpc-pascal] modulo of negative dividend

2010-03-13 Thread Flávio Etrusco
2010/3/13 Martín Marqués : > I'm checking the mod binary operator, and I found out that if the > dividend is negative, it gives a negative result. AFAIK, mod gives an > integer between 0 and d-1, where d is the divisor. > > Isn't this the right behavior? > > -- > Martín Marqués This is the mathema

[fpc-pascal] modulo of negative dividend

2010-03-13 Thread Martín Marqués
I'm checking the mod binary operator, and I found out that if the dividend is negative, it gives a negative result. AFAIK, mod gives an integer between 0 and d-1, where d is the divisor. Isn't this the right behavior? -- Martín Marqués select 'martin.marques' || '@' || 'gmail.com' DBA, Programad

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/

Re: [fpc-pascal] New wiki, ftp and mailing list server planned

2010-03-13 Thread Vincent Snijders
Florian Klaempfl schreef: As you might have noticed, the server running the wiki (lazarus and fpc), the mailing lists (lazarus and fpc) Just the fpc mailing lists. The Lazarus mailing lists are hosted on the same server that hosts the lazarus website and forum. and being ftp master (fpc and

Re: [fpc-pascal] New wiki, ftp and mailing list server planned

2010-03-13 Thread Vincent Snijders
Florian Klaempfl schreef: Flávio Etrusco schrieb: >From the wiki, it's more interesting to pay in Euros, right? Is the German PayPal only a localized version, or are they separate corporations and I'd have to create a different account? And is there a way to use the German site in English? ;)

Re: [fpc-pascal] New wiki, ftp and mailing list server planned

2010-03-13 Thread Florian Klaempfl
Flávio Etrusco schrieb: >>From the wiki, it's more interesting to pay in Euros, right? > Is the German PayPal only a localized version, or are they separate > corporations and I'd have to create a different account? And is there > a way to use the German site in English? ;) Afaik not, it's a germa