fn: *
[contents]

Contents

Syntax

The syntax for * calls is:

f++:  
*(params)

n++:  
@*(params)

Description

* is the arithmetic operator for multiplication, it takes a non-zero number of parameters that should all be numbers and returns their product.

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

f++ example

Example of * being used with f++:

:=(int, a=10, b=13, c=15)
console(*(a, b))
console(*(a, b, c))

n++ example

Example of * being used with n++:

@:=(int, a=10, b=13, c=15)
@console(@*(a, b))
@console(@*(a, b, c))

Sponsors