stringAsInt()

系统函数 MathLib.stringAsInt 接受字符值(如 "98")并返回类型为 BIGINT 的等效值。

  MathLib.stringAsInt(numberAsText STRING in)
  returns (result BIGINT)
result
类型为 BIGINT 的值。

有关将数字值指定给不同类型的字段的含义的详细信息,请参阅赋值

numberAsText
字符字段或文字串,可包括初始符号字符。

示例

  myField = "-5";

  // result = -5
  result = MathLib.stringAsInt(myField);  

相关参考
EGL 库 MathLib

使用条款 | 反馈
(C) Copyright IBM Corporation 2000, 2005. All Rights Reserved.