Difference between revisions of "Manuals/calci/UNITOP"

From ZCubes Wiki
Jump to navigation Jump to search
Line 1: Line 1:
<div style="font-size:30px">'''UNITOP(OP,A,B)'''</div><br/>
+
<div style="font-size:30px">'''UNITOP(op,a,b)'''</div><br/>
*<math>OP</math> is the operation to be performed
+
*<math>op</math> is the operation to be performed
*<math>A</math> and <math>B</math> are any two real numbers.
+
*<math>a</math> and <math>b</math> are any two real numbers.
  
 
==Description==
 
==Description==
 
*This function performs the operation mentioned as an argument with the two numbers entered.  
 
*This function performs the operation mentioned as an argument with the two numbers entered.  
*In <math>UNITOP(OP,A,B)</math>,<math>OP</math> is the operation to be performed. <math>A</math> and <math> B</math>  are any two real numbers.
+
*In <math>UNITOP(op,a,b)</math>,<math>op</math> is the operation to be performed. <math>a</math> and <math> b</math>  are any two real numbers.
 
*If operation can be addition, subtraction, multiplication, division, mod, greater-than, less-than etc.  
 
*If operation can be addition, subtraction, multiplication, division, mod, greater-than, less-than etc.  
  

Revision as of 17:26, 26 June 2018

UNITOP(op,a,b)


  • is the operation to be performed
  • and are any two real numbers.

Description

  • This function performs the operation mentioned as an argument with the two numbers entered.
  • In , is the operation to be performed. and are any two real numbers.
  • If operation can be addition, subtraction, multiplication, division, mod, greater-than, less-than etc.


Examples

  1. UNITOP(SUM,5,18) = 23
  2. UNITOP(MINUS,-90,-75) = -15
  3. UNITOP(GT,210,201) = true (checks if first number is greater than or equal to second number)
  4. UNITOP(LT,3.234, 1.42) = false (checks if first number is less than second number)
  5. UNITOP(UNITMULTIPLY,5,18) = 90
  6. UNITOP(UNITMOD,5,3) = 2
  7. UNITOP(UNITDIVIDE,50,5) = 10

See Also

References