|
![](/i/fill.gif) |
Jellby wrote:
>What would you expect?
>
>cos(0) = 1
>cos(pi*1/2) = 0
>cos(pi) = -1
>cos(pi*3/2) = 0
>
>Unfortunately, POV-Ray is not perfect and there are (as in most computer
>programs) floatin point inaccuracies and rounding errors. That means the
>result is not *exactly* 0, but slightly lower, and you see -0.000. This is
>normal and expected behaviour, if you are testing against 0 you should in
>turn test that abs(y) < tiny_number.
>
>Linux User #289967 (counter.li.org)
>PGP Pub Key ID: 0x01A95F99 (pgp.escomplinux.org)
>
Thak you, i'll remember it next time :)
Post a reply to this message
|
![](/i/fill.gif) |