New course! Every coder should learn Generative AI!
Try a free lesson0
How can i get 2.5 without using double
I have to get 2.5 using int Aa=5 int Bb=2
3 Answers
+ 1
Use float? 😕 What language?
0
I cant use float either
0
You can use String:
String str = Bb + "." + Aa;