- 3
Jave language
In my code, I want it to exit 53144, but it specifies 53144.0. How do I get rid of a comma and where is an error? Please answer
20 Respostas
+ 8
if s hold the float number, then:
System.out.println((int) s);
+ 6
System.out.println((int) 53144.0);
+ 4
Through type conversion
+ 3
guessing than target language is python:
53144 -> int
53144.0 -> float
so print(int(53144.0)) will do the trick ^^
+ 3
By Jave, did you mean Java?
+ 2
share your code to get accurate answer ^^
+ 1
System.out.println((int) 53144.0);
+ 1
plz write your answer only if you can. Not just like yes , no, instagram....... bla bla .
This is learning class okey!!!!!!!!!!!!!!!!!!!
+ 1
Noufel Bouattia Stop it ! Get Some Help.
+ 1
Noufel Bouattia it looks like you are using variables type Double , try to use int
0
Use double instead of int
- 1
its treu j use doubl
- 3
how my friend
- 3
yes
- 3
ok
- 4
how j cant chang
- 4
in my cod its like that.
System.out.println(s) who j reiht it
- 6
we can tolk beter ther
- 7
its worng mu freind
- 8
ples do you have instgram