fix data types

This commit is contained in:
ghost 2024-02-12 20:36:12 +02:00
parent 6ac12c61fc
commit 857f554689

View File

@ -35,13 +35,13 @@ class Tool
while ($dec > $base - 1)
{
$rest = bcmod(
$dec,
$base
(string) $dec,
(string) $base
);
$dec = bcdiv(
$dec,
$base
(string) $dec,
(string) $base
);
$value = $digits[$rest] . $value;
@ -89,15 +89,15 @@ class Tool
);
$power = bcpow(
$base,
$size - $loop - 1
(string) $base,
(string) ($size - $loop - 1)
);
$dec = bcadd(
$dec,
bcmul(
$element,
$power
(string) $element,
(string) $power
)
);
}