Originally posted by Jay Kamdar:
how do you convert double to an integer value?
how do you set decimal places to two points?
To convert a double to a int, just cast it.
You can't really set the number of decimals on a float, (at least, none that I know of), but there are classes like the java.text.decimalformat class that can help with decimal places when you convert it to a
string.
Henry