[
https://issues.apache.org/jira/browse/SIS-142?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Martin Desruisseaux closed SIS-142.
-----------------------------------
> Angle(89 + 1./60).toString() produces 89°00′60″ instead of 89°01′00″
> --------------------------------------------------------------------
>
> Key: SIS-142
> URL: https://issues.apache.org/jira/browse/SIS-142
> Project: Spatial Information Systems
> Issue Type: Bug
> Components: Utilities
> Affects Versions: 0.3
> Reporter: Martin Desruisseaux
> Assignee: Martin Desruisseaux
> Fix For: 0.4
>
>
> A rounding error in the internal {{AngleFormat}} formatting code cause
> {{format(89.01666666666667)}} to produce 89°00′60″ instead of 89°01′00″ when
> the {{AngleFormat}} is configured for using a variable number of fraction
> digits. This bug does not happen when the {{AngleFormat}} pattern defines a
> fixed amount of fraction digits. {{Angle.toString()}} is affected since it
> uses a variable number of digits.
--
This message was sent by Atlassian JIRA
(v6.2#6252)