Amend condition in which force decimals will be applied

Description

GeoTools' CoordinateFormatter has a condition that doesn't use forcedDecimal when the supplied number is in the -DECIMAL_MIN to +DECIMAL_MIN range, or when the value of the supplied number is less than the DECIMAL_MAX field, or zero. I believe the intent was that the default formatting code path (scientific notation, presumably) should be used when the value of the supplied number was between -DECIMAL_MAX and +DECIMAL_MAX but not in the -DECIMAL_MIN to +DECIMAL_MIN range, nor zero.

Environment

Not environment specific, I think.

Activity

Fixed

Details

Assignee

Reporter

Triage

Components

Fix versions

Affects versions

Priority

Created August 16, 2021 at 8:53 PM
Updated March 20, 2022 at 6:21 PM
Resolved March 20, 2022 at 6:21 PM