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

static property Zero: f16
#

static read-only

static property One: f16
#

static read-only

static property NegativeOne: f16
#

static read-only

Métodos

static method FromF64(value: f64) -> f16
#

static

static method ToF64(value: f16) -> f64
#

static

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.

method CompareTo(other: f16) -> i32
#

A total order: the usual one, nan above every number and equal to itself, -0 equal to +0 (what sorting uses).

method Equals(other: f16) -> bool
#
method Hash() -> u64
#
static method Bits(value: f16) -> u16
#

static

The IEEE 754 bits of the number, and back.

static method FromBits(bits: u16) -> f16
#

static

static method IsNaN(x: f16) -> bool
#

static

static method IsInfinity(x: f16) -> bool
#

static

static method IsFinite(x: f16) -> bool
#

static

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

static

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?
#

static

The number text writes, or null when it writes none.

Constantes

static constant MaxValue: f16
#

The largest finite f16, and the smallest (its negative).

static constant MinValue: f16
#
static constant Epsilon: f16
#

The smallest f16 above zero (a subnormal).

static constant NaN: f16
#

Not a number (quiet, positive), and the infinities.

static constant PositiveInfinity: f16
#
static constant NegativeInfinity: f16
#

Código fuente

Float16 en Larva HIR, descompilado a partir de su Larva HIR.

System.Float16.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
}
Esc