Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Decoding as[Any] processing numbers with 32b precision only #314

Closed
OndrejSpanel opened this issue Jul 14, 2024 · 0 comments · Fixed by #322
Closed

Decoding as[Any] processing numbers with 32b precision only #314

OndrejSpanel opened this issue Jul 14, 2024 · 0 comments · Fixed by #322
Assignees
Labels
bug Something isn't working has-pr

Comments

@OndrejSpanel
Copy link

Run following code:

import org.virtuslab.yaml.*

val yaml = "value: 0.018256052173961423"

yaml.as[Any]

Result is:

Right(Map(value -> 0.01825605146586895))

See https://scastie.scala-lang.org/OndrejSpanel/jfavH3u2Sq29Gs5nQHmXKQ/27

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
bug Something isn't working has-pr
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants