Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

round list of floats python

myList = [round(x) for x in myList]

myList # [25, 193, 282, 88, 80, 450, 306, 282, 88, 676, 986, 306, 282]
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #list #floats #python
ADD COMMENT
Topic
Name
9+3 =