POV-Ray : Newsgroups : povray.newusers : rounding and logic functions : Re: rounding and logic functions Server Time
19 May 2024 13:55:47 EDT (-0400)
  Re: rounding and logic functions  
From: clipka
Date: 4 Aug 2013 09:32:00
Message: <51fe57d0@news.povray.org>
Am 04.08.2013 03:41, schrieb Bald Eagle:

> I don't know what hyperbolic trig functions are (off the top of my head)

Don't worry - nobody knows (and nobody really needs them) except for a 
few math geeks :-P

> #declare Step = 0;
> #while (Step <= 2)
> #debug concat ("Number = ",str(Step,3,1))
> #debug "\n"
> #debug concat ("ceiling = ",str(ceil(Step),3,1))
> #debug "\n"
> #debug concat ("floor = ",str(ceil(Step),3,1))
> #debug "\n"
> #debug "\n"
> #declare Step = Step + 0.1;
> #end
>
> Floor and ceiling return the same value.
> THAT's what's wrong with them.

Um... that might be because you wrote "ceil(Step)" in /both/ debug 
lines? :-P


Post a reply to this message

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