POV-Ray : Newsgroups : povray.beta-test : int() and val() don't work in functions : Re: int() and val() don't work in functions Server Time
4 Nov 2024 23:18:58 EST (-0500)
  Re: int() and val() don't work in functions  
From: Anders K 
Date: 17 Sep 2001 17:21:33
Message: <3ba6695d@news.povray.org>
> > Actually, could you list the differences between "int" and "floor"?
>
> According to their definitions... shouldn't they be the same thing?...

Yes, they *should* be the same thing... The difference right now is that
floor always rounds down, but int always rounds towards zero (this is
usually called trunc). This also has a rather unfortunate effect on mod,
where, for example, -23 mod 10 is currently -3 when it should be 8.


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.