/ (division)

Tinderbox Icon


Operator Type:   Mathematical
Operator Scope of Action:   Item

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.


Up: Item-based operators
Previous: - (subtraction)  Next: = (assignment) 

[Last updated: 14 Dec 2009, using v5.0]

Google search aTbRef for:  

Licensed under Creative Commons Attribution-Noncommercial-Share Alike 3.0 License
[See aTbRef CC licence Attribution/Waiver info info]

Creative Commons License

Made with Tinderbox