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) {
$floatPart = $val;
} else {
$intPart = substr($val, 0, $decimals);
$floatPart = substr($val, $decimals);
$intPart = substr($val, 0, strlen($val) - $decimals);
$floatPart = substr($val, strlen($val) - $decimals);
}
return true;
}