11.07.2015 Views

NetEx EFT213 Reference Manual Rel 5.4

NetEx EFT213 Reference Manual Rel 5.4

NetEx EFT213 Reference Manual Rel 5.4

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Arithmetic OperationsThe following is a list of arithmetic operators.ADDDIVadd two numeric string expressions and return the result.divide the first numeric string expression specified by the second and return the result.MOD return the remainder of the division of the first numeric string expression specified by the second.MUL multiply two numeric string expressions and return the result.SUBFormat:Where:subtract the second numeric string expression specified from the first and return the result.add(number1, number2)div(number1, number2)mod(number1, number2)mul(number1, number2)sub(number1, number2)number1, number2Examples:numbers to be operated on.Add two constants and return the result:eFT> text {add(5,10)}eFT: 15Ask the user to enter three numbers:eFT> ask -prompt "Enter 3 #'s: " num1 num2 num3eFT: Enter 3 #'s: :usr.2 3 4Find the square of the first number:eFT> text The Square of {num1} is: {mul(num1,num1)eFT: The Square of 2 is: 4Find the total sum of the three numbers:eFT> text {num1}+{num2}+{num3} {add(num1,add(num2,num3))}eFT: 2+3+4 = 9Divide the third number by the first number:eFT> text {num3}/{num1} = {div(num3,num1)}eFT: 4/2 = 2REF-eFT213-R<strong>5.4</strong>-08 Advanced Local User’s Guide Page 69

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

Saved successfully!

Ooh no, something went wrong!