struct · System
Float32
public struct System.Float32 : System.ISignedNumber<f32>, System.IComparable<f32>, System.IToString
- Kind
- struct
- Namespace
- System
- Assembly
- System.Core
- Access
- public, members of f32
- Source file
Primitives.ant
Inheritance
- Interfaces
-
ISignedNumber<TSelf>IComparable<TSelf>IToString - All interfaces
-
IComparable<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 ((2.5).ToString("F2") is "2.50").
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).
The IEEE 754 bits of value (an f32 is exact as an f64: its bits are rebuilt from those).
The f32 with these IEEE 754 bits.
Constants
The largest finite f32, and the smallest (its negative).
The smallest f32 above zero (a subnormal).
Not a number (quiet, positive), and the infinities.
Source
Float32 as Larva HIR, decompiled from its Larva HIR.
public struct System.Float32 : System.ISignedNumber<f32>, System.IComparable<f32>, System.IToString
{
// The largest finite f32, and the smallest (its negative).
static constant MaxValue: f32
static constant MinValue: f32
// The smallest f32 above zero (a subnormal).
static constant Epsilon: f32
// Not a number (quiet, positive), and the infinities.
static constant NaN: f32
static constant PositiveInfinity: f32
static constant NegativeInfinity: f32
static method FromF64(value: f64) -> f32
static method ToF64(value: f32) -> f64
// As text by a format: F, N, E, P, G, R and a precision (`(2.5).ToString("F2")` is "2.50").
method ToString(format: System.String<u8>) -> System.String<u8>
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: f32) -> i32
// The IEEE 754 bits of `value` (an f32 is exact as an f64: its bits are rebuilt from those).
static method Bits(value: f32) -> u32
// The f32 with these IEEE 754 bits.
static method FromBits(bits: u32) -> f32
static property Zero: f32
static property One: f32
static property NegativeOne: f32
}