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:16:33 EST (-0500)
  Re: int() and val() don't work in functions  
From: Mike Williams
Date: 16 Oct 2001 22:03:55
Message: <W8YOyLAqYOz7Ewt8@econym.demon.co.uk>
Wasn't it Thorsten Froehlich who wrote:
>In article <slr### [at] fwicom> , ron### [at] povrayorg (Ron
>Parker) wrote:
>
>> I think the difference is the behavior for negative numbers:
>> int(-1.5) is -1, but floor(-1.5) is -2.
>
>Hmm, do we really need the "int" behavior?  Anyway, I will add it to
>functions.
>
>    Thorsten

Just a reminder. 

The inconsistency between the documentation (6.1.6) and the program
regarding the legality of "int()" withing a user defined function was
noticed back in beta 2. Things are still the same in beta 6, and it
doesn't appear to be on the "known bugs" list.

-- 
Mike Williams
Gentleman of Leisure


Post a reply to this message

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