SplitScript reference / Signed

Signed

capability

capability Signed

Identifies signed numeric types.

Signed values can represent numbers below zero and support all numeric operations.

Examples

Store a signed delta

let levelDelta: i32 = -4

Requires

MemberDescriptionAvailable through
NumericSupports ordered numeric operations.

Implemented by

MemberDescriptionAvailable through
f32Stores a 32-bit floating-point number.
f64Stores a 64-bit floating-point number.
i16Stores a 16-bit signed integer.
i32Stores a 32-bit signed integer.
i64Stores a 64-bit signed integer.
i8Stores an 8-bit signed integer.

Operators

MemberDescriptionAvailable through
-Returns this value with its sign inverted.

Methods

MemberDescriptionAvailable through
absReturns this value without a negative sign.