← Standard library

Numeric

constraint Numeric
import Numeric from Wax;

Common value, formatting, ordering, and nullable parsing operations required of numeric types.

NumericConstraints.wax:6

Members

GetHashCodemethod

public fn GetHashCode() : uint32

Returns a hash consistent with value equality.

NumericConstraints.wax:10

ToStringmethod

public fn ToString() : string

Returns the value's text representation.

NumericConstraints.wax:14

ToStringBuffermethod

public fn ToStringBuffer(StringBuilder builder) : int32

Appends the text representation and returns the number of UTF-8 bytes appended.

NumericConstraints.wax:18

Equalsmethod

public fn Equals(this other) : bool

Tests value equality.

NumericConstraints.wax:22

CompareTomethod

public fn CompareTo(this other) : int32

Returns negative, zero, or positive for less, equal, or greater.

NumericConstraints.wax:26

Parsemethod

public static fn Parse(string text) : this?

Parses using the implementing type's default syntax, returning null on failure.

NumericConstraints.wax:30