POV-Ray : Newsgroups : povray.advanced-users : Max-value with function int() : Re: Max-value with function int() Server Time
29 Jul 2024 06:22:05 EDT (-0400)
  Re: Max-value with function int()  
From: Warp
Date: 14 May 2003 19:26:38
Message: <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{
N(11117333955)N(4254934330)N(3900569407)N(7382340)N(3358)N(970)}//  - Warp -


Post a reply to this message

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