Skip to content

Commit

Permalink
again fix avogadro.py to print output with only four decimal places
Browse files Browse the repository at this point in the history
  • Loading branch information
saadati944 committed Jan 20, 2021
1 parent c77124c commit 07ba647
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion avogadro.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ def main():
k = (6 * D * math.pi * 9.135e-4 * 5e-7) / 297

# print resaults
print("Boltzman : {:.4}\nAvogadro : {:.4}".format(k, 8.31446/k))
print("Boltzman : {:.5}\nAvogadro : {:.5}".format(k, 8.31446/k))



Expand Down

0 comments on commit 07ba647

Please sign in to comment.