lightbend / config

configuration library for JVM languages using HOCON files
https://lightbend.github.io/config/
6.12k stars 968 forks source link

Add ConfigFloat class to wrap java.lang.Float. #776

Closed daniel-jasinski closed 1 year ago

daniel-jasinski commented 1 year ago

Instances of java.lang.Float were previously wrapped using ConfigDouble. This had the unfortunate side effect of adding junk values when converting to double. For example float value 1.64e-7f would be rendered as 1.6399999935856613E-7.

This issue was discovered when testing the HOCON module of the Kotlin Serialization library.

ennru commented 1 year ago

We do not intend to extend the functionality of "Typesafe Config" further. See https://github.com/lightbend/config#maintained-by