POV-Ray : Newsgroups : povray.off-topic : That's got to be one of the stupider design choices I've seen : Re: That's got to be one of the stupider design choices I've seen Server Time
4 Sep 2024 11:21:43 EDT (-0400)
  Re: That's got to be one of the stupider design choices I've seen  
From: Darren New
Date: 19 Feb 2010 11:36:08
Message: <4b7ebdf8$1@news.povray.org>
Warp wrote:
>   12 yes, but are you sure 0.3 can be converted from double to float without
> losing precision? (Not that it really matters with literals, though...)

Yes, *because* it's a literal. The compiler can tell me it'll fail in the 
case where I lose precision with the literal.  But sure, that's a decent point.

In other words, it complains the same for passing 0.5.  :-)  It's a generic 
result of the rules of casting in the language. It should not hold for literals.

-- 
Darren New, San Diego CA, USA (PST)
   The question in today's corporate environment is not
   so much "what color is your parachute?" as it is
   "what color is your nose?"


Post a reply to this message

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