Skip to content

multipleOf validation is incorrect for large integers #2561

@TomerAberbach

Description

@TomerAberbach

What version of Ajv are you using? Does the issue happen if you use the latest version?

Latest (v8.17.1)

Ajv options object

Any options.

JSON Schema

{ "multipleOf": 1 }

Sample data

1e21

What results did you expect?

1e21 should validate against multipleOf: 1, but it doesn't.

Are you going to resolve the issue?

Yup: #2562

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions