Tinderbox v10 Icon

/ (i.e. division)


Operator Type: 

Operator Scope of Action: 

Operator Purpose: 

Data Type Returned: 

Operator First Added: 

Operator in Current Baseline: 

Operator Last Altered: 

 Operator  [other Operator type actions]

 Item  [operators of similar scope]

 Mathematical  [other Mathematical operators]

 Number [about Number data type]

 v4.6.0

 Baseline

 As at baseline


/ (i.e. division)

The division operator, / (forward slash character), returns the argument before it divided by the argument after it.

$MyNumber = 3/4; 

By default, up to 5 decimal places are returned, so:

$MyNumber = 10/3; 

results in $MyNumber having a value of 3.33333.

Be aware the forward slash character has many other symbolic meanings (POSIX folder delimiter, linguistic use e.g. 'and/or', date component delimiters, etc.). Be careful to ensure to quote or escape the / character where you do not want Tinderbox to assume a division.


See also—notes linking to here: