|
![](/i/fill.gif) |
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
|
![](/i/fill.gif) |