POV-Ray : Newsgroups : povray.advanced-users : Max-value with function int() : Re: Max-value with function int() Server Time
29 Jul 2024 06:21:07 EDT (-0400)
  Re: Max-value with function int()  
From: Jaap Frank
Date: 20 May 2003 16:07:25
Message: <3eca8afd$1@news.povray.org>
"Warp" <war### [at] tagpovrayorg> wrote in message news:3ec2d0ad@news.povray.org...
> Jaap Frank <jjf### [at] xs4allnl> wrote:
> > When using the functions mod(A,B) and div(A,B)
> > you can't give values for A greater then int(float),
>
>   I suppose these use internally C's int() as well. Using fdiv() and floor()
> instead should fix the problem.
>
> --
> #macro N(D)#if(D>99)cylinder{M()#local D=div(D,104);M().5,2pigment{rgb M()}}
> N(D)#end#end#macro M()<mod(D,13)-6mod(div(D,13)8)-3,10>#end blob{

The first three numbers below exceed the max-value 2 147 483 647 for div() and
mod().
> N(11 117 333 955)N(4 254 934 330)N(3 900 569 407)N(7 382 340)N(3358)N(970)}//  -
Warp -
Haven't this give you troubles?

Jaap Frank


Post a reply to this message

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