posted 20 years ago
If you make the "Float" words into "float" then its ok, but regarding your answer. All numbers that has a "." thingy on them or a decimal value (i think that is what is called) are initially considered as a double value.
For example declaring 1.2 means that you have a double 1.2 value.
With regards w/ the "-1" value. It means the you have an int value. Since it is implicitly castable to a float, or a float can hold an int value that statement is correct.
Remember the transition of numerical data types are as follows
byte -> short -> int -> long -> float -> double.
any backward assignment needs an explicit cast.
[ September 22, 2004: Message edited by: Doyle Matt ]