Hi,

A part of the answer is:

> format(sin(pi), scientific=FALSE, digits=20)

and also

R FAQ 7.31

On my machine,
> sin(pi)
[1] 1.224647e-16


Regards,
Pascal



2013/9/26 Babak Bastan <babakbsn@gmail.com>

> Hi experts,
>
> If I test sin(pi) in r, it returns me 1.224606e-16
>
> Why doesn't return me 0?
>
>         [[alternative HTML version deleted]]
>
> ______________________________________________
> R-help@r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide
> http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
>



-- 
Pascal Oettli
Project Scientist
JAMSTEC
Yokohama, Japan

	[[alternative HTML version deleted]]

