class · System
Number
public class System.Number : System.Any
Numbers as text and back.
- Tipo
- class
- Espacio de nombres
- System
- Ensamblado
- System.Core
- Acceso
- public, static, abstract
- Archivo fuente
Primitives.ant
Herencia
- Clases base
-
AnyNumber
Métodos
static method Format(value: i64) -> System.String<u8>
#
The decimal digits of value (with a '-' when negative).
static method FormatUnsigned(value: u64) -> System.String<u8>
#
The decimal digits of value.
static method FormatUnsigned(value: u128) -> 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: u256) -> System.String<u8>
#
The decimal digits of a 256-bit value: 19 digits at a time, as for 128 bits.
How many decimal digits value has (1 for 0).
Writes the digits of value so they end just before end.
static method Parse(text: System.String<u8>) -> i64
#
The integer text writes (an optional '-', then decimal digits); a FormatError otherwise.
static method TryParse(text: System.String<u8>) -> i64?
#
The integer text writes (an optional '-', then decimal digits), or null.
Miembros privados e internos (1)
Miembros heredados (5)
GetTypemétodo de AnyUndescribedmétodo de AnyToStringmétodo de AnyHashmétodo de Anydestroymétodo de Any
Código fuente
Number en Larva HIR, descompilado a partir de su Larva 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?
}