You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@sis.apache.org by "Martin Desruisseaux (JIRA)" <ji...@apache.org> on 2013/10/24 10:52:02 UTC
[jira] [Updated] (SIS-142) Angle(89 + 1./60).toString() produces 89°00′60″ instead of 89°01′00″
[ https://issues.apache.org/jira/browse/SIS-142?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Martin Desruisseaux updated SIS-142:
------------------------------------
Summary: Angle(89 + 1./60).toString() produces 89°00′60″ instead of 89°01′00″ (was: AngleFormat.format(89 + 1./60) produces 89°00′60″ instead of 89°01′00″)
> 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.1#6144)