Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python print float in scientific notation

v = 2.50435-e03
'%.2E' % v

# returns '2.50E-03'
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #python #print #float #scientific #notation
ADD COMMENT
Topic
Name
4+7 =