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.
The
Multiples(Ints)validator checks if a give value is a multiple of some other value (thedivisor).This validator only works for
Intsand 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-9as 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.