We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ef1cf2c commit 65334e1Copy full SHA for 65334e1
1 file changed
src/protocol/v6/structures/Vector.php
@@ -73,7 +73,7 @@ public static function encode(array $data): self
73
$packFormat = 'q';
74
}
75
} elseif ($allFloats) {
76
- if ($minValue >= 1.18e-38 && $maxValue <= 3.40e+38) { // Single precision float (FLOAT_32)
+ if ($minValue >= 1.4e-45 && $maxValue <= 3.4028235e+38) { // Single precision float (FLOAT_32)
77
$marker = 0xC6;
78
$packFormat = 'G';
79
} else { // Double precision float (FLOAT_64)
0 commit comments