+ 1
little long answer. but here my answer python is written in C. in C, double is decimal and integer is normal number. then python is set up double to get true number of division. because if python set this to integer, then 12.55 become 12. if you want a non-decimal number in python: from math import floor, ceil inp = int(input("number :")) print(ceil(inp), floor(inp), round(inp)) #ceil is to make number highest decimal 10.2 -> 11 #floor is to make number lowest decimal 10.9 -> 10 #round is auto, 10.5 -> 10. 10.7-> 11
7th Mar 2018, 10:13 AM
Kevin AS
Kevin AS - avatar