Pages

vendredi 30 septembre 2011

data type in python

the built-in data type in python are: int, long, float, complex.
1) to find the precision of floating point:
import sys
sys.float_info.dig
this will show a number of 15, which means that the 15 decimals are the max precision from python; beyond this, the precision is not good.

http://docs.python.org/library/stdtypes.html for detailed info

Aucun commentaire:

Enregistrer un commentaire