On Wed, 9 Aug 2023 at 15:43, Daniel Watson <dcwatso...@gmail.com> wrote:
>
> Hope that answers more questions than it creates!

It does not address the issue of the last significant zero, e.g:

10000 (4 sf)
10000 (3 sf)
10000 (2 sf)

One way to solve this with standard parsing would be to use scientific notation:

1.000e4
1.00e4
1.0e4

Note that for the example of inch to cm conversions the value 2.54
cm/inch is exact. This leads to the issue that there should be a way
to exclude some input from limiting the detection of the lowest
significant figure (i.e. mark numbers as exact). This puts some
responsibility on the provider of the data to follow a format; and
some on the parser to know what fields to analyse.

Alex

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@commons.apache.org
For additional commands, e-mail: dev-h...@commons.apache.org

Reply via email to