ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/CommFunc.py | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 |
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)))