sis-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Martin Desruisseaux (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (SIS-142) AngleFormat.format(89 + 1./60) produces 89°00′60″ instead of 89°01′00″
Date Thu, 24 Oct 2013 08:52:01 GMT

     [ https://issues.apache.org/jira/browse/SIS-142?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Martin Desruisseaux updated SIS-142:
------------------------------------

    Description: 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.  (was: A rounding error in the internal {{AngleFormat}}
formatting code cause {{format(89.01666666666667)}} to produce 89°00′60″ instead of 89°01′00″.
This error related to SIS-141 bug.)

> AngleFormat.format(89 + 1./60) 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)

Mime
View raw message