From 8c4a6ea04317bc70d2ecf55f9661c32deeb2c726 Mon Sep 17 00:00:00 2001
From: hxp <ale99527@vip.qq.com>
Date: 星期二, 19 十二月 2023 15:46:49 +0800
Subject: [PATCH] 10028 【港台】港台0.1折充值验证精确度优化

---
 ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/CommFunc.py |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/CommFunc.py b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/CommFunc.py
index 9781308..2ef5864 100644
--- a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/CommFunc.py
+++ b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/CommFunc.py
@@ -597,5 +597,5 @@
     @param floatRMB: 单位元,float 类型,支持 RMB 或 美元
     @return: 转化为分数值
     '''
-    # 由于float会有不精确的现象出现xxx.9999999的问题,所以这里计算出的结果向上取整
-    return int(math.ceil(floatRMB * 100))
+    # 由于float会有不精确的现象出现xxx.9999999或xxx.0000000000001的问题,所以这里计算出的结果向上取整
+    return int(math.ceil(round(floatRMB * 100)))

--
Gitblit v1.8.0