POV-Ray : Newsgroups : povray.beta-test : buil-in-float-functions in function{} Server Time
31 Jul 2024 00:34:51 EDT (-0400)
  buil-in-float-functions in function{} (Message 1 to 2 of 2)  
From: KalleK
Subject: buil-in-float-functions in function{}
Date: 28 Sep 2001 02:26:02
Message: <3bb417fa$1@news.povray.org>
AMD 1,4GHz, 512 MB DDR RAM, W98, POVray 3.5 beta4

Try the following line:
#local T = function (b) {div(b,2)}
it driggers that error:

"
#local T = function (b) {div(b,2)} <----ERROR
Parse Error: Expected 'function identifier', } found instead
"

When you change div(2,b) to mod(2,b) there's no error.

cukk


Post a reply to this message

From: Thorsten Froehlich
Subject: Re: buil-in-float-functions in function{}
Date: 28 Sep 2001 11:10:55
Message: <3bb492ff$1@news.povray.org>
In article <3bb417fa$1@news.povray.org> , "KalleK" <kal### [at] gmxde> wrote:

> Try the following line:
> #local T = function (b) {div(b,2)}
> it driggers that error:
>
> "
> #local T = function (b) {div(b,2)} <----ERROR
> Parse Error: Expected 'function identifier', } found instead
> "
>
> When you change div(2,b) to mod(2,b) there's no error.

The integer division function is not supported.  It is a documentation
error.


    Thorsten


____________________________________________________
Thorsten Froehlich, Duisburg, Germany
e-mail: tho### [at] trfde

Visit POV-Ray on the web: http://mac.povray.org


Post a reply to this message

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