POV-Ray : Newsgroups : povray.unofficial.patches : Noisy thoughts : Re: Noisy thoughts Server Time
2 Sep 2024 04:13:58 EDT (-0400)
  Re: Noisy thoughts  
From: Tom Melly
Date: 29 Sep 2000 10:13:42
Message: <39d4a396$1@news.povray.org>

news:39D49C7F.7CCBBAAC@enst.fr...
> Tom Melly wrote:
> >
> > Can I guess? (I know practically nothing about C, and absolutely nothing
> > about it's internals). Assuming that there is nothing different about
the
> > output of the calculation, could it be that, when x_ix is an integer
value,
> > the first example will perform an integer calculation, whereas the
second
> > example will always perform a floating point calculation?
> >
> No no no. x_ix and x_jx are floating point numbers in both examples so
> both cases require a floating point computation...
>

So C will never use integer math on a variable declared as float, even when
the value of the float is an integer?


Post a reply to this message

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