This preview has intentionally blurred sections. Sign up to view the full version.View Full Document
Unformatted text preview: negative infinity, or Not-a-Number (NaN). The Selection statements can not be used to test for equality with floating point values; thus, it is necessary to do a relational test using an if statements. For example the test might be if (divisor < .000000001) with floating point values. 22. a. casting error ─ x = (int) "aValue"; These are thrown for errors in arithmetic, casting or conversion. b. if a method has the following signature: public void aMethod ( ) and you try to call it as follows: aMethod(35); Doyle: C#, 2nd edition ISBN 1423901460 Page 1-2 This exception is thrown when the format of an argument does not meet the parameter specifications of the invoked method. c. int [ ] a = new int; System.Console.WriteLine(a); Doyle: C#, 2nd edition ISBN 1423901460 Page 1-3...
View Full Document
This note was uploaded on 06/24/2011 for the course CIS 170 taught by Professor Michaelfreeman during the Spring '10 term at DeVry Chicago.
- Spring '10