Overview | Statement List


模块化的算术函数

Synopsis

MODF(arg, mod)

Description

Returns the remainder of the division arg/mod. The value returned is in the base of the denominator "mod". Therefore, for most practical applications the value mod should be an integer.

Using the function as shown below,

B = MODF(X,Y)

is equivalent to the following expressions:

A = X/Y
B = ABSF(A-INTF(A))*Y

Statement

Assigned Value

B=MODF(14,8)

B equals 6

Parameters

Parameter

Description

arg

Numerical value which is divided by the mod value.

mod

Numerical value which is divided into the arg value. The returned remainder of the division is in the base of this value.

 


Copyright ©2015 胡君NX二次开发官网(www.UGapi.com) QQ:85585969 All Rights Reserved.