[fpc-pascal] Re: Sin function
    Lukasz Sokol 
    el.es.cr at gmail.com
       
    Tue Jan  4 18:08:18 CET 2011
    
    
  
Hi faber,
well, even mathematically, it is sorta right... yes the sin(0)=0 but looking at its graph, 
it is a rising slope, so sin(x near to 0-) < 0 :)
:)
L.
On 29/12/2010 10:03, 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
> _______________________________________________
> fpc-pascal maillist  -  fpc-pascal at lists.freepascal.org
> http://lists.freepascal.org/mailman/listinfo/fpc-pascal
> 
    
    
More information about the fpc-pascal
mailing list