Re: [text][geometry] DoubleFormats utility

2021-05-13 Thread Matt Juntunen
Hello, Yes, the JDK definitely has number formatting capabilities. The class that I propose moving to text was designed specifically for data IO operations, where large numbers of doubles need to be serialized to strings in some standard, non-localized format. I was unable to find exactly what

Re: [text][geometry] DoubleFormats utility

2021-05-13 Thread Benjamin Marwell
I'm not a commons committer, but I think it moved to Java 8, where you already have the same functionality available in the JDK. NumberFormat and DecimalFormat [1] will do the same already, if I am not mistaken. Ben 1: https://www.baeldung.com/java-number-formatting On Thu, 13 May 2021, 17:59

[text][geometry] DoubleFormats utility

2021-05-13 Thread Matt Juntunen
Hello, For the geometry IO work I did recently, I ended up creating a DoubleFormats [1] utility class that generates formatters for various floating point string representations. It creates formatters for plain (straight decimal), scientific, engineering, and mixed plain and scientific formats.