ServerPython/CoreServerGroup/GameServer/Script/CommFunc.py @@ -565,5 +565,5 @@ @return: 转化为分数值 ''' # 由于float会有不精确的现象出现xxx.9999999的问题,所以这里计算出的结果向上取整 return int(math.ceil(floatRMB * 100)) return int(math.ceil(round(floatRMB * 100)))