Re: [fpc-pascal] Sin function

2010-12-29 Thread Mark Morgan Lloyd
faber wrote: If I were you I would print it with more digits so you see if there is any significant difference at all. ok I understand, I was suggested by http://www.freepascal.org/docs-html/rtl/system/sin.html where it is given score 0.0 for Writeln (Sin(Pi):0:1); Transcendentals are a can o

Re: [fpc-pascal] Sin function

2010-12-29 Thread Ivo Steinmann
Hi Ingemar 0.0 and -0.0 is the same number ;) it's just a quirk of the IEEE floating point format, that there exists a positiv and negative zero (because they use a sign bit). -Ivo Am 29.12.2010 12:17, schrieb Ingemar Ragnemalm: faber wrote: Hi, according to docs/reference sin function s

Re: [fpc-pascal] Sin function

2010-12-29 Thread faber
> If I were you I would print it with more digits so you see if there is any > significant difference at all. ok I understand, I was suggested by http://www.freepascal.org/docs-html/rtl/system/sin.html where it is given score 0.0 for Writeln (Sin(Pi):0:1); best regards faber _

[fpc-pascal] Sin function

2010-12-29 Thread Ingemar Ragnemalm
faber wrote: Hi, according to docs/reference sin function should print 0.0 when Writeln (Sin(Pi):0:1); but, with fpc 2.4.0 and 2.4.2 (x86) I've get "-0.0", such a result is not entirely correct. This is a bug (in sin func.) or something wrong with the formatting ? best regards faber If

[fpc-pascal] Sin function

2010-12-29 Thread faber
Hi, according to docs/reference sin function should print 0.0 when Writeln (Sin(Pi):0:1); but, with fpc 2.4.0 and 2.4.2 (x86) I've get "-0.0", such a result is not entirely correct. This is a bug (in sin func.) or something wrong with the formatting ? best regards faber _