modf(Variable, Variable) Function

Top 

Description

Computes the signed integer and fractional portions of the specified value.

 

Timing Precision Mode

This page describes functionality in millisecond timing precision mode. Millisecond timing precision mode is deprecated and will be removed in a future release. We recommend that you migrate your Mission Plans to nanosecond timing precision mode.

 

Function Signature

modf(

Variable x,


Variable integerPortion)

 

 

Arguments

x


Description:

The value whose integer and fractional portions will be calculated.

 

 

integerPortion


Description:

Receives the integer portion of the specified value.

 

 

 

Return Value

Type:

number

 

 

The fractional portion of the specified value.

 

Syntax

myVariable1 = modf(myVariable2, myVariable3);

 

 

See also

modf