struct · System
Float16
public struct System.Float16 : System.ISignedNumber<f16>, System.IComparable<f16>, System.IToString
- Tipo
- struct
- Espacio de nombres
- System
- Ensamblado
- System.Core
- Acceso
- public, miembros de f16
- Archivo fuente
Primitives.ant
Herencia
- Interfaces
-
ISignedNumber<TSelf>IComparable<TSelf>IToString - Todas las interfaces
-
IComparable<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 ((2.5f16).ToString("F2") is "2.50").
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>) -> f16
#
The number text writes (digits, a point, an exponent), read as an f64 and rounded; a FormatError otherwise.
static method TryParse(text: System.String<u8>) -> f16?
#
The number text writes, or null when it writes none.
Constantes
The largest finite f16, and the smallest (its negative).
The smallest f16 above zero (a subnormal).
Not a number (quiet, positive), and the infinities.
Código fuente
Float16 en Larva HIR, descompilado a partir de su Larva HIR.
public struct System.Float16 : System.ISignedNumber<f16>, System.IComparable<f16>, System.IToString
{
// The largest finite f16, and the smallest (its negative).
static constant MaxValue: f16
static constant MinValue: f16
// The smallest f16 above zero (a subnormal).
static constant Epsilon: f16
// Not a number (quiet, positive), and the infinities.
static constant NaN: f16
static constant PositiveInfinity: f16
static constant NegativeInfinity: f16
static method FromF64(value: f64) -> f16
static method ToF64(value: f16) -> f64
// As text by a format: F, N, E, P, G, R and a precision (`(2.5f16).ToString("F2")` is "2.50").
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: f16) -> i32
method Equals(other: f16) -> bool
method Hash() -> u64
// The IEEE 754 bits of the number, and back.
static method Bits(value: f16) -> u16
static method FromBits(bits: u16) -> f16
static method IsNaN(x: f16) -> bool
static method IsInfinity(x: f16) -> bool
static method IsFinite(x: f16) -> bool
// The number `text` writes (digits, a point, an exponent), read as an f64 and rounded; a FormatError otherwise.
static method Parse(text: System.String<u8>) -> f16
// The number `text` writes, or null when it writes none.
static method TryParse(text: System.String<u8>) -> f16?
static property Zero: f16
static property One: f16
static property NegativeOne: f16
}