class · System

Number

public class System.Number : System.Any

Numbers as text and back.

Kind
class
Namespace
System
Assembly
System.Core
Access
public, static, abstract
Source file
Primitives.ant

Inheritance

Base classes
Any Number

Methods

static method Format(value: i64) -> System.String<u8>
#

static

The decimal digits of value (with a '-' when negative).

static method FormatUnsigned(value: u64) -> System.String<u8>
#

static

The decimal digits of value.

static method FormatUnsigned(value: u128) -> System.String<u8>
#

static

The decimal digits of a 128-bit value: 19 digits at a time (one division by 10^19 for each, the digits of each part from a u64).

static method FormatUnsigned(value: u256) -> System.String<u8>
#

static

The decimal digits of a 256-bit value: 19 digits at a time, as for 128 bits.

static method DigitCount(value: u64) -> i32
#

static

How many decimal digits value has (1 for 0).

static method WriteDigits(value: u64, units: u8[], end: i32) -> void
#

static

Writes the digits of value so they end just before end.

static method Parse(text: System.String<u8>) -> i64
#

static

The integer text writes (an optional '-', then decimal digits); a FormatError otherwise.

static method TryParse(text: System.String<u8>) -> i64?
#

static

The integer text writes (an optional '-', then decimal digits), or null.

Private and internal members (1)

static method Chunked(top: u64, parts: u64[], count: i32) -> System.String<u8>
#

private static

The digits of top, then 19 for each of parts[count - 1] … parts[0] (with their leading zeros).

Inherited members (5)

Source

Number as Larva HIR, decompiled from its Larva HIR.

System.Number.hir
// Numbers as text and back.
public class System.Number : System.Any
{
    // The digits of `top`, then 19 for each of parts[count - 1] … parts[0] (with their leading zeros).
    static method Chunked(top: u64, parts: u64[], count: i32) -> System.String<u8>
    // The decimal digits of `value` (with a '-' when negative).
    static method Format(value: i64) -> System.String<u8>
    // The decimal digits of `value`.
    static method FormatUnsigned(value: u64) -> System.String<u8>
    // The decimal digits of a 128-bit `value`: 19 digits at a time (one division by 10^19 for each, the digits
    // of each part from a u64).
    static method FormatUnsigned(value: u128) -> System.String<u8>
    // The decimal digits of a 256-bit `value`: 19 digits at a time, as for 128 bits.
    static method FormatUnsigned(value: u256) -> System.String<u8>
    // How many decimal digits `value` has (1 for 0).
    static method DigitCount(value: u64) -> i32
    // Writes the digits of `value` so they end just before `end`.
    static method WriteDigits(value: u64, units: u8[], end: i32) -> void
    // The integer `text` writes (an optional '-', then decimal digits); a FormatError otherwise.
    static method Parse(text: System.String<u8>) -> i64
    // The integer `text` writes (an optional '-', then decimal digits), or null.
    static method TryParse(text: System.String<u8>) -> i64?
}
Esc