18.01.2015 Views

Technical Reference Manual - InduSoft

Technical Reference Manual - InduSoft

Technical Reference Manual - InduSoft

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Appendix: Built-in Scripting Language<br />

Mod<br />

Mod is a built-in scripting function that gets the remainder from a division operation.<br />

Function Group Execution Windows Embedded Thin Client<br />

Mod Arithmetic Synchronous Supported Supported Supported<br />

Group Execution Windows PC Windows CE Thin Client<br />

Arithmetic Synchronous Supported Supported Supported<br />

Syntax<br />

Mod( numNumerator, numDenominator )<br />

numNumerator<br />

Integer or Real tag containing the Numerator of the function.<br />

numDenominator<br />

Integer or Real tag containing the Denominator of the function.<br />

Returned value<br />

Returns the remainder (as a real number) after dividing numNumerator by numDenominator.<br />

Tip: Use the Div function to get the whole number dividend of the operation.<br />

Examples<br />

Tag Name<br />

Expression<br />

Tag Mod( 50, 4 ) // Returned value = 2<br />

Tag Mod( 16, 4 ) // Returned value = 0<br />

Tag Mod( 100, 8.2 ) // Returned value = 1.600<br />

Pow<br />

Pow is a built-in scripting function that gets the result of raising a numeric value to a specified exponent.<br />

Function Group Execution Windows Embedded Thin Client<br />

Pow Arithmetic Synchronous Supported Supported Supported<br />

Syntax<br />

Pow( numBase, numExponent )<br />

numBase<br />

Integer or Real tag containing the Base of the function.<br />

numExponent<br />

Integer or real tag containing the Exponent of the function.<br />

Returned value<br />

Returns the result of raising the base to the exponent.<br />

<strong>InduSoft</strong> Web Studio Page 539

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!