Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

Two possible outputs for Double? #13

Open
toddobryan opened this issue Oct 26, 2022 · 0 comments
Open

Two possible outputs for Double? #13

toddobryan opened this issue Oct 26, 2022 · 0 comments

Comments

@toddobryan
Copy link

Referring to these cases in JsonGeneratorTest

    enum DoubleTestCase {
        ZERO(0.0, "0.0"),
        E(Math.E, "2.718281828459045"),
        PI(Math.PI, "3.141592653589793"),
        MAX_VALUE(Double.MAX_VALUE, "1.7976931348623157E308"),
        MIN_VALUE(Double.MIN_VALUE, "4.9E-324");

isn't the MAX_VALUE one also legal if there's a + between the E and 308?

It looks like the JSON grammar allows no character, a plus, or a minus.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant