Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python only decimal part

x = 3.1416
# first method
dec = x - int(x)
# second method
dec = x % 1
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #python #decimal #part
ADD COMMENT
Topic
Name
6+8 =