Skip to content

Incorrect combined multipleOf value when using decimal constraints #154

@srivastava-diya

Description

@srivastava-diya

Description

When combining decimal multipleOf constraints (e.g. inside allOf), the resulting combined value can be wildly incorrect instead of the expected mathematical LCM.

Minimal reproducible example

{
   allOf: [
       { multipleOf: 0.2 },
       { multipleOf: 0.3 }
   ]
}

Instance

instance = 0.7

Expected output

Expected a number that is a multiple of 0.6

Actual Output

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions