<round>
<round>
is a Math Operator
component that renders a numerical value rounded to the user-specified number of decimal places or digits. Default rounding is to the nearest integer.
Attributes and Properties
Attribute | Type | Values |
---|---|---|
anchor = "…" | point | |
createIntervals = "…" | boolean | "true" "false" |
createVectors = "…" | boolean | "true" "false" |
displayBlanks = "…" | boolean | "true" "false" |
displayDecimals = "…" | integer | |
displayDigits = "…" | integer | |
displaySmallAsZero = "…" | number | |
draggable = "…" | boolean | "true" "false" |
expand = "…" | boolean | "true" "false" |
format = "…" | text | "text" "latex" |
functionSymbols = "…" | textList | |
layer = "…" | number | |
numDecimals = "…" | number | |
numDigits = "…" | number | |
padZeros = "…" | boolean | "true" "false" |
parseScientificNotation = "…" | boolean | "true" "false" |
positionFromAnchor = "…" | text | "upperright" "upperleft" "lowerright" "lowerleft" "top" "bottom" "left" "right" "center" |
referencesAreFunctionSymbols = "…" | ||
renderMode = "…" | text | |
simplify = "…" | text | "none" "full" "numbers" "numberspreserveorder" |
splitSymbols = "…" | boolean | "true" "false" |
unordered = "…" | boolean | "true" "false" |
Property | Type |
---|---|
$r.anchor | point |
$r.backgroundColor | text |
$r.createIntervals | boolean |
$r.createVectors | boolean |
$r.disabled | boolean |
$r.displayBlanks | boolean |
$r.displayDecimals | integer |
$r.displayDigits | integer |
$r.displaySmallAsZero | number |
$r.draggable | boolean |
$r.expand | boolean |
$r.fixed | boolean |
$r.fixLocation | boolean |
$r.format | text |
$r.functionSymbols | textList |
$r.hidden | boolean |
$r.isNumber | boolean |
$r.isNumeric | boolean |
$r.latex | latex |
$r.layer | number |
$r.list | [ math ] |
$r.matrix | [ math ] |
$r.matrixSize | numberList |
$r.number | number |
$r.numColumns | integer |
$r.numDecimals | number |
$r.numDigits | number |
$r.numDimensions | integer |
$r.numListItems | integer |
$r.numRows | integer |
$r.padZeros | boolean |
$r.parseScientificNotation | boolean |
$r.positionFromAnchor | text |
$r.renderMode | text |
$r.simplify | text |
$r.splitSymbols | boolean |
$r.text | text |
$r.textColor | text |
$r.textStyleDescription | text |
$r.unordered | boolean |
$r.value | round |
$r.vector | [ math ] |
$r.x | math |
$r.y | math |
$r.z | math |
Example: Default rounding
Default rounding is to the nearest integer.
Example: numDecimals
The numDecimals
attribute specifies how many decimal places to round to.
Example: numDigits
The numDigits
attribute specifies how many significant figures to round to.