Answers for "how to round to 3 significant figures in python"

0

how to round to 3 significant figures in python

rounded_number =  round(a_number, significant_digits - int(math.floor(math.log10(abs(a_number)))) - 1)
Posted by: Guest on May-18-2021
0

round to 3 significant figures python

>>> round(1234, -3)
1000.0
Posted by: Guest on June-17-2020

Code answers related to "how to round to 3 significant figures in python"

Python Answers by Framework

Browse Popular Code Answers by Language