Numeric Value
Scripting with the NumericValue struct.
The NumericValue
struct is used by the Scaling Value class to support multiple numeric types.
Fields & Properties
Name
Description
Type
Access
numericType
The numeric type.
NumericType
public
value
The value.
NumericValue.Value
public
NumericType
Name
Description
Float
Float value type.
Integer
Integer value type.
Creating a Numeric Value
Operators
You can use arithmetic and comparison operators for mathematical and comparison purposes.
Arithmetic Example
You can use arithmetic operators for a NumericValue
for mathematical purposes with another NumericValue
, int
, or float
value.
Comparison Example
You can use comparison operators for to compare a StatValue
with another StatValue
, int
, or float
value.
Last updated