Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

how to get the number in the tenths place of a integer in python

def get_pos_nums(num):
    pos_nums = []
    while num != 0:
        pos_nums.append(num % 10)
        num = num // 10
    return pos_nums
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #number #tenths #place #integer #python
ADD COMMENT
Topic
Name
2+4 =