Wednesday, April 10, 2013 2:00 PM double: can hold fraction * 10 to the -308 up to 10 to the 308 * about 15 significant digits * ex. -0.10, .123, 12.34, 56. int: holding only integers, generally limited to about -2 billion to +2 billion * ex. 123, -45 * drops fraction if entered double ex. int k - 123.8898; // k will be 123, drops the fraction. BE CAREFUL compiler warning, maybe legal but not what author intended DON'T IGNORE WARNINGS compiler can convert int to double…
Words 820 - Pages 4