Correct how decimal position is calculated after trailing zeros have been added

Reviewers: emily

Reviewed By: emily

Differential Revision: http://phabricator.khanacademy.org/D13064