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.15
TRX 0.16
JST 0.028
BTC 67779.88
ETH 2396.01
USDT 1.00
SBD 2.32