SyntaxFix
Write A Post
Hire A Developer
Questions
You can convert the double value into a int value. int x = (int) y where y is your double variable. Then, printing x does not give decimal places (15000 instead of 15000.0).
double
int
int x = (int) y
x
15000
15000.0