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-382) SI multiples not recognized when applied on kilogram
Date Fri, 29 Dec 2017 17:11:00 GMT

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

Martin Desruisseaux updated SIS-382:
------------------------------------
    Description: Multiplication or division by a power of 10 are automatically replaced by
SI prefix when applicable. For example {{Units.METRE.multiply(1000)}} automatically assigns
the "km" symbol to the resulting units. However this mechanism does not work with kilogram:
{{Units.KILOGRAM.divide(1E6)}} or {{Units.GRAM.divide(1000)}} should produce de "mg" unit,
but we get "1E-6 · kg" instead.  (was: Multiplication or division by a power of 10 are automatically
replaced by SI prefix when applicable. For example {{Units.METRE.multiply(1000)}} automatically
assigns the "km" symbol to the resulting units. However this mechanism does not work with
kilogram: {{Units.KILOGRAM.divide(1E6)}} should produce de "mg" unit, but we get "1E-6 ·
kg" instead.)

> SI multiples not recognized when applied on kilogram
> ----------------------------------------------------
>
>                 Key: SIS-382
>                 URL: https://issues.apache.org/jira/browse/SIS-382
>             Project: Spatial Information Systems
>          Issue Type: Bug
>          Components: Utilities
>    Affects Versions: 0.8
>            Reporter: Martin Desruisseaux
>            Assignee: Martin Desruisseaux
>             Fix For: 1.0
>
>
> Multiplication or division by a power of 10 are automatically replaced by SI prefix when
applicable. For example {{Units.METRE.multiply(1000)}} automatically assigns the "km" symbol
to the resulting units. However this mechanism does not work with kilogram: {{Units.KILOGRAM.divide(1E6)}}
or {{Units.GRAM.divide(1000)}} should produce de "mg" unit, but we get "1E-6 · kg" instead.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Mime
View raw message