Fix units if value is 0.0
Merge pull request #1890 from jburel/unit-issue

Fix units if value is 0.0