Fix determining the decimals for negative values

Authored by sgerlach on May 5 2020, 10:30 PM.