You are viewing a single comment's thread from:

RE: Arithmetic operation in Python

in #python8 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.04
TRX 0.32
JST 0.088
BTC 60220.32
ETH 1618.00
USDT 1.00
SBD 0.38