DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
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
COMMENT
Name
8+5 =
Submit