in reply to
Fun with implicit type conversions
Here's a couple of mildly amusing examples that might require a little bit of thought before one realizes that they are in fact obvious:
"nancy boy" : NaN "infidelity" : Inf
[download]
I think that, on some systems, the right hand side will be lowercase throughout (ie "nan" and "inf", respectively) and other case variations might also exist.
Cheers,
Rob
Comment on
Re: Fun with implicit type conversions
Download
Code
In Section
Meditations