Uint
Uint implements comparison and math operators.
Implements
Section titled “Implements”Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new Uint(
value):Uint
Parameters
Section titled “Parameters”number | bigint
Returns
Section titled “Returns”Uint
Methods
Section titled “Methods”add(
other):Val
Add returns a combination of the current value and other value.
Parameters
Section titled “Parameters”Returns
Section titled “Returns”Implementation of
Section titled “Implementation of”compare()
Section titled “compare()”compare(
other):Val
Compare this value to the input other value.
Parameters
Section titled “Parameters”Returns
Section titled “Returns”Implementation of
Section titled “Implementation of”convertToNative()
Section titled “convertToNative()”convertToNative(
typeDesc?):unknown
ConvertToNative converts the Value to a native TypeScript value according to the provided type description, or throws if the conversion is not feasible.
Parameters
Section titled “Parameters”typeDesc?
Section titled “typeDesc?”unknown
Returns
Section titled “Returns”unknown
Implementation of
Section titled “Implementation of”convertToType()
Section titled “convertToType()”convertToType(
typeValue):Val
ConvertToType supports type conversions between CEL value types supported by the expression language.
Parameters
Section titled “Parameters”typeValue
Section titled “typeValue”Returns
Section titled “Returns”Implementation of
Section titled “Implementation of”divide()
Section titled “divide()”divide(
other):Val
Divide returns the result of dividing the current value by the input denominator.
Parameters
Section titled “Parameters”Returns
Section titled “Returns”Implementation of
Section titled “Implementation of”equal()
Section titled “equal()”equal(
other):Val
Equal returns true if the other value has the same type and content as the implementing value.
Parameters
Section titled “Parameters”Returns
Section titled “Returns”Implementation of
Section titled “Implementation of”isZeroValue()
Section titled “isZeroValue()”isZeroValue():
boolean
IsZeroValue returns true if the uint is zero.
Returns
Section titled “Returns”boolean
modulo()
Section titled “modulo()”modulo(
other):Val
Modulo returns the result of taking the modulus of the current value by the denominator.
Parameters
Section titled “Parameters”Returns
Section titled “Returns”Implementation of
Section titled “Implementation of”multiply()
Section titled “multiply()”multiply(
other):Val
Multiply returns the result of multiplying the current and input value.
Parameters
Section titled “Parameters”Returns
Section titled “Returns”Implementation of
Section titled “Implementation of”subtract()
Section titled “subtract()”subtract(
other):Val
Subtract returns the result of subtracting the input from the current value.
Parameters
Section titled “Parameters”Returns
Section titled “Returns”Implementation of
Section titled “Implementation of”type()
Section titled “type()”type():
RefType
Type returns the TypeValue of the value.
Returns
Section titled “Returns”Implementation of
Section titled “Implementation of”value()
Section titled “value()”value():
bigint
Value returns the raw value of the instance which may not be directly compatible with the expression language types.
Returns
Section titled “Returns”bigint