[ 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 the "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)}} or {{Units.GRAM.divide(1000)}} 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 > Priority: Major > 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 the "mg" unit, but we get "1E-6 · > kg" instead. -- This message was sent by Atlassian JIRA (v7.6.3#76005)