This version is out of date, covering development from v4.6.0 to v4.7.1. It is maintained here only for inbound reference links from elsewhere. Jump to the current version of aTbRef. |
|
A Tinderbox Reference File : Actions & Rules : Operators : Full Operator List : / (division) | aTbRef Site Map |
/ (division) |
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: Full Operator List | |
Previous: - (subtraction) | Next: = (assignment) |
Licensed under Creative Commons Attribution-Noncommercial-Share Alike 3.0 License
[See aTbRef CC licence Attribution/Waiver info info]