modf()

系统函数 MathLib.modf 将一个数字分割为整数部分和小数部分,这两个部分都与该数字具有相同的符号。小数部分在 result 中返回,整数部分在 numericField2 中返回。

  MathLib.modf(
    numericField1 mathLibNumber in,     
    numericField2 mathLibNumber inOut)
  returns (result mathLibTypeDependentResult) 
result
任何数字或 HEX 项,如数学(系统字)中所述。numericField1 的小数部分被转换为具有 result 的格式,并在 result 中返回。
numericField1
任何数字或 HEX 项,如数学(系统字)中所述。
numericField2
任何数字或 HEX 项,如数学(系统字)中所述。numericField1 的整数部分被转换为具有 numericField2 的格式,并在 numericField2 中返回。

示例

  result = MathLib.modf(myItem01,myItem02);

相关参考
EGL 库 MathLib

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