No, its not. Safe, that is.
Consider "float q = 123456789;" or "float q=1234567898765432123456789;"
And if you do not want to use pike, feel free not to.
/ Per Hedbor ()
Previous text:
2003-09-19 01:11: Subject: Re: float type weirdness
On Thu, Sep 18, 2003 at 10:55:04PM +0200, Fredrik (Naranek) Hubinette (Real Build Master) @ Pike (-) developers forum wrote:
is not int, and implementing the auto-int-to-float conversion in many operators was a mistake that I wouldn't repeat if I were to design
At least it is safe to make auto-conversion (perhaps with warning) when integer (a number without ".") is assigned to the float variable. It would be also _convenient_ to interpret 0 as 0.0 where it seems logical (comparision). But OK. As I said before - I give up.
I thought that Pike was intented for a bit broader usage than closed group who knows-better-than-everybody-else... Seems that I made a mistake...
Regards, /Al
/ Brevbäraren