Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/JsonSchema/Constraints/NumberConstraint.php
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ public function check(&$element, $schema = null, JsonPointer $path = null, $i =
private function fmod($number1, $number2)
{
$number1 = abs($number1);
$modulus = fmod($number1, $number2);
$modulus = ($number1 - round($number1 / $number2) * $number2);
$precision = abs(0.0000000001);
$diff = (float) ($modulus - $number2);

Expand Down