POV-Ray : Newsgroups : povray.general : large numbers turn random negative!? : Re: large numbers turn random negative!? Server Time
20 May 2024 14:57:02 EDT (-0400)
  Re: large numbers turn random negative!?  
From: jr
Date: 24 Jul 2023 15:55:00
Message: <web.64bed6e6a82368980c03e9d6cde94f1@news.povray.org>
hi,

"Leroy" <whe### [at] gmailcom> wrote:
> I have pov3.7 on my winXP.
> While playing around with making music using POV.

as you do.. :-)


> I made long rhythm strings
> and turn them into numbers and visa versa. Using random numbers to check things
> out, when negative random numbers show up. With NO negative numbers on the page.
> It's not a big deal in my case. But I wonder if this is a window thing, or a
> float thing in POV,and if anyone else came a cross this.
>
> Here's the test code the should show the problem:
> ...

not a Windows thing, same (-2147483648) on Linux.  think it's a signed 32 bit
int related problem, as that number is half of the unsigned max.


regards, jr.


Post a reply to this message

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