Page MenuHomePhabricator

Floating point issue on points on workboards
Closed, ResolvedPublic

Description

Sorry for not providing much info before.

Phabricator has a floating point issue when adding up decimal task points.

I can reproduce this by putting tasks with the following point values (in this order) on a single workboard:
0.1, 0.25, 0.25, 0.5, 0.1

The total shows up as:

pasted_file (54×310 px, 2 KB)

Maybe should just find whatever the longest decimal component in the list is and round to that.

Revisions and Commits

Restricted Differential Revision

Event Timeline

epriestley added a revision: Restricted Differential Revision.Sep 27 2016, 4:31 PM

Thanks for the report! The detailed reproduction instructions were very helpful in resolving this.

I believe D16601 should fix it, using the approach you suggest (rounding to the most-precise value's precision) which seems like a reasonable approach to me.

epriestley triaged this task as Normal priority.
epriestley added a project: Workboards.
epriestley closed this task as Resolved by committing Restricted Diffusion Commit.Sep 27 2016, 4:36 PM
epriestley added a commit: Restricted Diffusion Commit.