struct · System
Float128
public struct System.Float128 : System.ISignedNumber<f128>, System.IHashable<f128>, System.IComparable<f128>, System.IToString
- Tipo
- struct
- Espacio de nombres
- System
- Ensamblado
- System.Core
- Acceso
- public, miembros de f128
- Archivo fuente
Primitives.ant
Herencia
- Interfaces
-
ISignedNumber<TSelf>IHashable<TSelf>IComparable<TSelf>IToString - Todas las interfaces
-
IComparable<TSelf>IHashable<TSelf>INumber<TSelf>ISignedNumber<TSelf>IToString
Propiedades
Métodos
method ToString(format: System.String<u8>) -> System.String<u8>
#
As text by a format: F, N, E, P, G, R and a precision; the fixed formats show up to 33 digits.
method ToString() -> System.String<u8>
#
The shortest text that reads back as the same number.
A total order: the usual one, nan above every number and equal to itself, -0 equal to +0 (what sorting uses).
The IEEE 754 bits of the number, and back.
static method Parse(text: System.String<u8>) -> f128
#
The number text writes (digits, a point, an exponent; nan, inf, -inf); a FormatError otherwise.
static method TryParse(text: System.String<u8>) -> f128?
#
The number text writes, or null when it writes none.
Digits × 10^exponent: exact (one correctly rounded operation) up to 33 significant digits and a power of ten up to 10^48, which the type holds exactly; beyond that, within a few units in the last place.
10^power by squaring (exact up to 10^48).
Constantes
The largest finite f128, and the smallest (its negative).
The smallest f128 above zero (a subnormal).
Not a number (quiet, positive), and the infinities.
Código fuente
Float128 en Larva HIR, descompilado a partir de su Larva HIR.
public struct System.Float128 : System.ISignedNumber<f128>, System.IHashable<f128>, System.IComparable<f128>, System.IToString
{
// The largest finite f128, and the smallest (its negative).
static constant MaxValue: f128
static constant MinValue: f128
// The smallest f128 above zero (a subnormal).
static constant Epsilon: f128
// Not a number (quiet, positive), and the infinities.
static constant NaN: f128
static constant PositiveInfinity: f128
static constant NegativeInfinity: f128
static method FromF64(value: f64) -> f128
static method ToF64(value: f128) -> f64
// As text by a format: F, N, E, P, G, R and a precision; the fixed formats show up to 33 digits.
method ToString(format: System.String<u8>) -> System.String<u8>
// The shortest text that reads back as the same number.
method ToString() -> System.String<u8>
// A total order: the usual one, nan above every number and equal to itself, -0 equal to +0 (what sorting uses).
method CompareTo(other: f128) -> i32
method Equals(other: f128) -> bool
method Hash() -> u64
// The IEEE 754 bits of the number, and back.
static method Bits(value: f128) -> u128
static method FromBits(bits: u128) -> f128
static method IsNaN(x: f128) -> bool
static method IsInfinity(x: f128) -> bool
static method IsFinite(x: f128) -> bool
// The number `text` writes (digits, a point, an exponent; `nan`, `inf`, `-inf`); a FormatError otherwise.
static method Parse(text: System.String<u8>) -> f128
// The number `text` writes, or null when it writes none.
static method TryParse(text: System.String<u8>) -> f128?
// Digits × 10^exponent: exact (one correctly rounded operation) up to 33 significant digits and a power
// of ten up to 10^48, which the type holds exactly; beyond that, within a few units in the last place.
static method Read(units: u8[]) -> f128
// 10^power by squaring (exact up to 10^48).
static method PowerOfTen(power: i32) -> f128
static property Zero: f128
static property One: f128
static property NegativeOne: f128
}