struct · System
Float256
public struct System.Float256 : System.ISignedNumber<f256>, System.IHashable<f256>, System.IComparable<f256>, System.IToString
- Kind
- struct
- Namespace
- System
- Assembly
- System.Core
- Access
- public, members of f256
- Source file
Primitives.ant
Inheritance
- Interfaces
-
ISignedNumber<TSelf>IHashable<TSelf>IComparable<TSelf>IToString - All interfaces
-
IComparable<TSelf>IHashable<TSelf>INumber<TSelf>ISignedNumber<TSelf>IToString
Properties
Methods
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 71 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>) -> f256
#
The number text writes (digits, a point, an exponent; nan, inf, -inf); a FormatError otherwise.
static method TryParse(text: System.String<u8>) -> f256?
#
The number text writes, or null when it writes none.
Digits × 10^exponent: exact (one correctly rounded operation) up to 71 significant digits and a power of ten up to 10^102, which the type holds exactly; beyond that, within a few units in the last place.
10^power by squaring (exact up to 10^102).
Constants
The largest finite f256, and the smallest (its negative).
The smallest f256 above zero (a subnormal).
Not a number (quiet, positive), and the infinities.
Source
Float256 as Larva HIR, decompiled from its Larva HIR.
public struct System.Float256 : System.ISignedNumber<f256>, System.IHashable<f256>, System.IComparable<f256>, System.IToString
{
// The largest finite f256, and the smallest (its negative).
static constant MaxValue: f256
static constant MinValue: f256
// The smallest f256 above zero (a subnormal).
static constant Epsilon: f256
// Not a number (quiet, positive), and the infinities.
static constant NaN: f256
static constant PositiveInfinity: f256
static constant NegativeInfinity: f256
static method FromF64(value: f64) -> f256
static method ToF64(value: f256) -> f64
// As text by a format: F, N, E, P, G, R and a precision; the fixed formats show up to 71 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: f256) -> i32
method Equals(other: f256) -> bool
method Hash() -> u64
// The IEEE 754 bits of the number, and back.
static method Bits(value: f256) -> u256
static method FromBits(bits: u256) -> f256
static method IsNaN(x: f256) -> bool
static method IsInfinity(x: f256) -> bool
static method IsFinite(x: f256) -> bool
// The number `text` writes (digits, a point, an exponent; `nan`, `inf`, `-inf`); a FormatError otherwise.
static method Parse(text: System.String<u8>) -> f256
// The number `text` writes, or null when it writes none.
static method TryParse(text: System.String<u8>) -> f256?
// Digits × 10^exponent: exact (one correctly rounded operation) up to 71 significant digits and a power
// of ten up to 10^102, which the type holds exactly; beyond that, within a few units in the last place.
static method Read(units: u8[]) -> f256
// 10^power by squaring (exact up to 10^102).
static method PowerOfTen(power: i32) -> f256
static property Zero: f256
static property One: f256
static property NegativeOne: f256
}