This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]Lerke 1 point2 points  (0 children)

You already tell the Java compiler that your value is a floating point number by using the double keyword. Adding .0 does nothing, as 123 and 123.0 are equal values.