Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

the float type in python3 can represent decimal 0.1 without error.

#mostExactRepresentation for 0.1 
value = 3602879701896397 / 2 ** 55
value == 0.1
True
 
PREVIOUS NEXT
Tagged: #float #type #represent #decimal
ADD COMMENT
Topic
Name
7+4 =