This commit is contained in:
aozhiwei 2023-08-29 15:41:05 +08:00
parent e0a8062713
commit 286590d352

View File

@ -215,8 +215,8 @@ class BlockChainService {
if (strlen($val) <= $decimals) { if (strlen($val) <= $decimals) {
$floatPart = $val; $floatPart = $val;
} else { } else {
$intPart = substr($val, 0, $decimals); $intPart = substr($val, 0, strlen($val) - $decimals);
$floatPart = substr($val, $decimals); $floatPart = substr($val, strlen($val) - $decimals);
} }
return true; return true;
} }