This version is out of date, covering development from v6.0.0 to v6.6.5. It is maintained here only for inbound reference links from elsewhere. It is no longer actively updated.

Jump to the current version of aTbRef

TinderboxSix Icon

/ (division)


Operator Type: 

Operator Scope of Action: 

Operator Purpose: 

Operator First Added: 

Operator Altered: 

 Operator   [other Operator type actions]

 Item   [operators of similar scope]

 Mathematical   [other Mathematical operators]

 Baseline

 


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.



A Tinderbox Reference File : Actions & Rules : Operators : Full Operator List : / (division)