“属性舍入到非数值约定或截断”的注释和答案。 https://knowledge.亚搏在线safe.com/questions/39250/attribute-rounding-to-other-than-numerical-convent.html “属性舍入到非数值约定或截断”问题的最新注释和答案。 高石回答 https://knowledge.亚搏在线safe.com/answers/39284/view.html网址

您好!@巡洋舰,我将尝试以下两个步骤:

  1. 将0.001添加到Z值。
  2. 使用attributeRounder舍入结果值(小数点:1,舍入方向:向下)。
2017年1月30日星期一23:51:48 GMT 高石
ITAY答复 https://knowledge.亚搏在线safe.com/answers/39254/view.html网址

查看用于截断的StringFormatter和用于舍入的AttributeRounder。

我认为您需要通过stringformatter截短并测试十进制数来决定要舍入的数字,从而想出自己的舍入机制。

希望这有帮助。

2017年1月30日星期一格林尼治标准时间17:19:26 意大利