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:19:38 EST (-0500)
  Re: int() and val() don't work in functions  
From: Ron Parker
Date: 17 Sep 2001 15:56:48
Message: <slrn9qclc2.l3s.ron.parker@fwi.com>
On Mon, 17 Sep 2001 15:37:14 -0400, Thorsten Froehlich wrote:
>In article <Wme### [at] econymdemoncouk> , Mike Williams 
><mik### [at] nospamplease>  wrote:
>
>> So what do we do if we really want "int()"?
>
>Actually, could you list the differences between "int" and "floor"?

I think the difference is the behavior for negative numbers: 
int(-1.5) is -1, but floor(-1.5) is -2.

-- 
#local R=rgb 99;#local P=R-R;#local F=pigment{gradient x}box{0,1pigment{gradient
y pigment_map{[.5F pigment_map{[.3R][.3F color_map{[.15red 99][.15P]}rotate z*45
translate x]}]#local H=pigment{gradient y color_map{[.5P][.5R]}scale 1/3}[.5F
pigment_map{[.3R][.3H][.7H][.7R]}]}}}camera{location.5-3*z}//only my opinions


Post a reply to this message

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