|
![](/i/fill.gif) |
In article <3ec181ad@news.povray.org>, Warp <war### [at] tag povray org>
wrote:
> Seemingly POV-Ray does an "(int)(x)" operation, when it should instead
> make a "floor(x)".
Not floor(), the int() operation is a bit different, which is why POV
has both floor() and int() functions. floor() rounds to the next lower
integer, but int() truncates the fractional part, effectively rounding
towards 0. The standard C rint() function may be a better way to
implement this.
--
Christopher James Huff <cja### [at] earthlink net>
http://home.earthlink.net/~cjameshuff/
POV-Ray TAG: chr### [at] tag povray org
http://tag.povray.org/
Post a reply to this message
|
![](/i/fill.gif) |