+ 1

how can i turn the intager to doubel ??

14th Mar 2017, 9:37 PM
Khulud Al-slman
Khulud Al-slman - avatar
2 Answers
+ 4
You cast it like this: int x = 5; double y = (double) x;
14th Mar 2017, 9:40 PM
DaemonThread
DaemonThread - avatar
+ 1
thank you
14th Mar 2017, 9:41 PM
Khulud Al-slman
Khulud Al-slman - avatar