interface · System
INumber<TSelf>
public interface System.INumber<TSelf>
A number: +, -, *, /, %, == and < on two of them (so != and > too), the constants Zero and
One, and FromF64/ToF64. T : number.
- Tipo
- interface
- Espacio de nombres
- System
- Ensamblado
- System.Core
- Acceso
- public
- Archivo fuente
Numbers.ant
Parámetros de tipo
| Nombre | Restricciones |
|---|---|
TSelf | plain, System.INumber<TSelf>, operador +, operador -, operador *, operador /, operador %, operador ==, operador < |
Herencia
- Implementado por
-
Float128Float16Float256Float32Float64ISignedNumber<TSelf>Int128Int16Int256Int32Int64Int8UInt128UInt16UInt256UInt32UInt64UInt8
Miembros privados e internos (4)
Código fuente
INumber<TSelf> en Larva HIR, descompilado a partir de su Larva HIR.
// A number: `+`, `-`, `*`, `/`, `%`, `==` and `<` on two of them (so `!=` and `>` too), the constants Zero and
// One, and FromF64/ToF64. `T : number`.
public interface System.INumber<TSelf>
{
// `value` as this type of number (an integer drops the fraction): how Math reaches the floating-point
// functions (Sqrt, Sin, Pow, ...) from any number.
static method FromF64(value: f64) -> TSelf
// The number as an f64.
static method ToF64(value: TSelf) -> f64
// The number zero (what `default(T)` is too).
static property Zero: TSelf
// The number one.
static property One: TSelf
}