Something I came across recently was this oddity:
double.NaN == double.NaN will never be true.
Basically, according to wikipedia, "Not a Number" will never equal anything - not even itself. This is an interesting take on the idea of "nothing" or "unassigned" since null == null returns true. So, as a solution, we have been given double.IsNaN(double)
#FunFact
Subscribe to:
Post Comments (Atom)
How I downloaded all my photos from Photobucket
I used to be a photographer. Did I take good pictures? No. Did I like taking pictures? Yes. So I took lots of pictures, but none very good. ...
-
I used to be a photographer. Did I take good pictures? No. Did I like taking pictures? Yes. So I took lots of pictures, but none very good. ...
-
I've been using the Google Calendar API a lot for my program Bulk Edit Calendar Events. Here's something I learned today when trying...
-
I've written a number of small Windows applications (usually using WinForms, but occasionally WPF). In developing an application for use...
No comments:
Post a Comment