Big number division

I want to compute n / 2.0 where n is 10**18 the problem i am facing is it return a long rather than float for a big number and does the interger division talking specifically about python , so how can we devide a very big number and get a float in return?

If you use c++ , you can use double or long double explicitly convert the dividend to long double .

in python

p=float(100000000/2)
print p

this will do!
and in c++ use long double will do .

accept the answer if it helped! :slight_smile:

//