cgohlke / molmass

Molecular mass calculations
https://pypi.org/project/molmass
BSD 3-Clause "New" or "Revised" License
54 stars 12 forks source link

Adding factional wt of element #7

Closed code4Siddharth closed 3 years ago

code4Siddharth commented 3 years ago

How can we enter the formula of compounds like FeO2.33 or A0.2B0.8Se etc.?

code4Siddharth commented 3 years ago

Yes, for example, if I want to calculate the molecular mass of Sr_0.5La_0.5TiO_3 it gives an error
FormulaError: count is zero Sr0(La0)5(TiO3)5 ......^

cgohlke commented 3 years ago

Sorry, molmass formulas can not contain fractional numbers.