Unformatted text preview: following line of code: a = x / y always results in 0 rather than a fractional value, like I expected. I even tried to fix it: a = (double) x / y; but it still does not work how I want it to. How can I fix it without changing the type of x and y? List the four types of integers, smallest to largest List the two types of floating-point numbers, smallest to largest...
View Full Document
This note was uploaded on 12/27/2011 for the course CMPSC 5 taught by Professor Franklin during the Fall '09 term at UCSB.
- Fall '09