fn: /
[contents]

Contents

Syntax

The syntax for / calls is:

f++:  
/(params)

n++:  
@/(params)

Description

/ is the arithmetic operator for division, it takes n0 input parameters p1,,pn that should all be numbers and returns p1//pn performed from left to right. For example, /(p1,p2,p3)=p1/p2/p3=(p1/p2)/p3=p1p2p3.

Note: It is typically faster to use exprtk for arithmetic operators, plus the syntax is nicer.

f++ example

Example of / being used with f++:

  1. :=(int, a=60, b=10, c=3)
  2. console(/(a, b))
  3. console(/(a, b, c))

n++ example

Example of / being used with n++:

  1. @:=(int, a=60, b=10, c=3)
  2. @console(@/(a, b))
  3. @console(@/(a, b, c))