Hi Warp, you recently wrote in povray.advanced-users:
> I have seen this written in C:
>
> double x = (double)(1.0);
>
> I'm just wondering why this wasn't enough:
>
> double x = 1;
Maybe the programmer previous written that line as
DBL x = (DBL) 1.0;
and had DBL defined as float, but didn't want to add the 'f' onto the
1.0.
Then he did a global search and replace and replaced DBL with double?
- Lutz
email : lut### [at] stmuccom
Web : http://www.stmuc.com/moray
Post a reply to this message
|