Skip to content

Multiples validator only works for Ints #765

@AdriaanRol

Description

@AdriaanRol

The Multiples(Ints) validator checks if a give value is a multiple of some other value (the divisor).

This validator only works for Ints and there is no reason for this.

A perfectly valid example would be requiring for values to be multiples of 20ns.

The current value would then be valid 40e-9 as this would return 0.0. Currently this will raise an error as 40e-9 (which is a multiple of 20e-9) raises an error as it is not an Int. I propose dropping the constraint of it having to be an Int.

Metadata

Metadata

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