Skip to content

Commit 0a01a3c

Browse files
authored
Remove floating point
1 parent 7b3758d commit 0a01a3c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Diff for: conversions/molecular_chemistry.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@ def molarity_to_normality(nfactor: int, moles: float, volume: float) -> float:
77
Wikipedia reference: https://en.wikipedia.org/wiki/Molar_concentration
88
99
>>> molarity_to_normality(2, 3.1, 0.31)
10-
20.0
10+
20
1111
>>> molarity_to_normality(4, 11.4, 5.7)
12-
8.0
12+
8
1313
1414
"""
1515
return round((float(moles/volume) * nfactor))

0 commit comments

Comments
 (0)