+ 1

How to display float number as integer

float to integer

30th Sep 2018, 4:27 PM
Pardha Teja
Pardha Teja - avatar
4 Respuestas
+ 1
In what language?
30th Sep 2018, 4:37 PM
CodeMStr
CodeMStr - avatar
30th Sep 2018, 6:24 PM
Pardha Teja
Pardha Teja - avatar
+ 1
I searched the internet and i think it tells there is an int function: https://stackoverflow.com/questions/31818050/round-number-to-nearest-integer
30th Sep 2018, 6:27 PM
CodeMStr
CodeMStr - avatar
+ 1
Compile an example and understand everything: print(int(1.5), float(1))
30th Sep 2018, 9:39 PM
Александр