Stacks API

Come build with us.
Stacks API v6 for Stacks 2.5


  <   Custom Controls Reference


Math — math

This content is open source. You can edit it and submit a pull request on GitHub.
This page is generated from this file.


© . YourHead Software all rights reserved.

Math — math

Overview

A slider for choosing from a range of numbers.

A slider always has a minimum and maximum value (defaults to 0 - 20). Tick marks can be displayed to help the user find specific values. The output value can be either an integer (if rounding is enabled) or a float.

Available: Stacks API v2

Argument 1

Arguments come in two formats. They can either be a constant number or a string that specifies the ID of some other control. If taking the value from another control, the other control must return a number typed value.


Argument 2

Arguments come in two formats. They can either be a constant number or a string that specifies the ID of some other control. If taking the value from another control, the other control must return a number typed value.


Operator

Operators have the standard C language functions.


Rounding

If the value of round is true, then the output number will be rounded to the nearest whole integer. If the round property is not present on a math function, then the default is to enable rounding.

Note: Rounding is enabled by default. To return a floating point value, you must include and disable rounding.




© . YourHead Software all rights reserved.