POV-Ray : Newsgroups : povray.off-topic : It's a riddle : Re: It's a riddle Server Time
11 Oct 2024 05:22:21 EDT (-0400)
  Re: It's a riddle  
From: Nicolas Alvarez
Date: 7 Feb 2008 10:50:42
Message: <47ab28d2$1@news.povray.org>

>     #declare Weeks_Notice = int(Years_Employed)

I'm not sure if int is a valid function. Replace with ceil or floor (or 
round?) as appropriate; would make it more explicit.

>   #debug concat("Weeks notice required: ",str(Weeks_Notice))

Better design if the function returns the value it found, instead of 
printing it.

Also, you could have used #switch and #range; but I agree with 
Invisible: the way it's written now is clear even for non-coders...


Post a reply to this message

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