0

How do I slove this...?

float u=3.5; v=(int)(u+0.5)

4th Mar 2020, 6:27 PM
Anonymous World
Anonymous World - avatar
2 Antworten
+ 7
just put f end of the num like float u=3.5f; (int)(u+0.5f); it deffers from double for now
4th Mar 2020, 6:37 PM
0_O-[Mägár_Sám_Äkà_Nüllpøïntêr_Èxëcéptïön]~~
0_O-[Mägár_Sám_Äkà_Nüllpøïntêr_Èxëcéptïön]~~ - avatar
+ 4
Python: u = 3.5 v = 0.5 print(u + v)
4th Mar 2020, 8:53 PM
Rik Wittkopp
Rik Wittkopp - avatar