<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

Attributes for <round>
AttributeTypeValues
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"
Props for <round name="r">
PropertyType
$r.anchorpoint
$r.backgroundColortext
$r.createIntervalsboolean
$r.createVectorsboolean
$r.disabledboolean
$r.displayBlanksboolean
$r.displayDecimalsinteger
$r.displayDigitsinteger
$r.displaySmallAsZeronumber
$r.draggableboolean
$r.expandboolean
$r.fixedboolean
$r.fixLocationboolean
$r.formattext
$r.functionSymbolstextList
$r.hiddenboolean
$r.isNumberboolean
$r.isNumericboolean
$r.latexlatex
$r.layernumber
$r.list[ math ]
$r.matrix[ math ]
$r.matrixSizenumberList
$r.numbernumber
$r.numColumnsinteger
$r.numDecimalsnumber
$r.numDigitsnumber
$r.numDimensionsinteger
$r.numListItemsinteger
$r.numRowsinteger
$r.padZerosboolean
$r.parseScientificNotationboolean
$r.positionFromAnchortext
$r.renderModetext
$r.simplifytext
$r.splitSymbolsboolean
$r.texttext
$r.textColortext
$r.textStyleDescriptiontext
$r.unorderedboolean
$r.valueround
$r.vector[ math ]
$r.xmath
$r.ymath
$r.zmath

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.