|
-
Mar 12th, 2003, 05:41 PM
#13
this might be helpful
when you divide by zero .NET wont throw an exception error. I think it's only like this for Double. There is Double.isNaN and Double.IsInfinity
Nan is Not A Number, I dont remember when that happens.
Now if you try this with that code it will return true : Double.IsInfinity(i)
I think they made it like this so that your program wouldnt return an exception for these values. Makes more sense..... there was an explanation of it in my book...
edit: and the reason that it doesnt work with "\" is that "\" converts the value to INTEGER. But the Integer data type doesnt accept the values of Infinity or Nan
rate my posts if they help ya!
Extract thumbnail without reading the whole image file: (C# - VB)
Apply texture to bitmaps: (C# - VB)
Extended console library: (VB)
Save JPEG with a certain quality (image compression): (C# - VB )
VB.NET to C# conversion tips!!
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|