0

63/2 shows me 31 and not decimals in python27

26th Jun 2017, 2:02 PM
FoxyYT 2
FoxyYT 2 - avatar
2 Answers
+ 1
as expected. Python 2.* defaults to integer division. ask it to do fractions by 63.0/2 or 63/2.0
26th Jun 2017, 2:05 PM
Venkatesh Pitta
Venkatesh Pitta - avatar
0
thanks
26th Jun 2017, 2:06 PM
FoxyYT 2
FoxyYT 2 - avatar