修改科学计算字符类型

This commit is contained in:
2024-05-08 11:59:47 +08:00
parent 39a71a53e4
commit 3c22c9444b
6 changed files with 55 additions and 48 deletions
+5 -5
View File
@@ -225,13 +225,13 @@ class DoctorAccountService extends BaseService
(string)$order_service_package_detail['service_count'],
2
),
0.75,
"0.75",
2
);
}else{
$result['estimate_income'] = bcmul(
(string)$order_service_package_detail['service_price'],
0.75,
"0.75",
2
);
}
@@ -344,9 +344,9 @@ class DoctorAccountService extends BaseService
// 计算医生个人所得税
$income_tax = $this->computeIndividualIncomeTax($amount_total);
$withdrawal_amount = bcsub($amount_total, $income_tax, 2);
$withdrawal_amount = bcsub((string)$amount_total, (string)$income_tax, 2);
$income_tax = bcmul($income_tax, 1, 2);
$income_tax = bcmul((string)$income_tax, 1, 2);
$result = array();
$result['bank'] = $bank; //银行数据
@@ -673,7 +673,7 @@ class DoctorAccountService extends BaseService
}
// 提现金额
$amount_total = bcmul((string)$amount_total,0.75,2);
$amount_total = bcmul((string)$amount_total,"0.75",2);
// 计算医生个人所得税
$income_tax = $this->computeIndividualIncomeTax($amount_total);