You are viewing a single comment's thread from:

RE: Arithmetic operation in Python

in #python7 years ago

In Python 3.x, division result is always float.

Even in Python 2.7 you can actually set this functionality by importing "division" module from future.

from __future__ import division
1 / 2
# 0.5

:)

Coin Marketplace

STEEM 0.22
TRX 0.24
JST 0.038
BTC 104371.85
ETH 3301.73
SBD 4.31