value · System

Int64

public value Int64 : ISignedNumber<i64>, IHashable<i64>, IComparable<i64>, IToString
Tipo
value
Espacio de nombres
System
Ensamblado
System.Core
Acceso
public, miembros de i64
Archivo fuente
Primitives.ant

Herencia

Interfaces
ISignedNumber<TSelf> IHashable<TSelf> IComparable<TSelf> IToString
Todas las interfaces
IComparable<TSelf> IHashable<TSelf> INumber<TSelf> ISignedNumber<TSelf> IToString

Propiedades

static i64 Zero { get; }
#

static read-only

static i64 One { get; }
#

static read-only

static i64 NegativeOne { get; }
#

static read-only

Métodos

static FromF64(f64 value) : i64
#

static

static ToF64(i64 value) : f64
#

static

ToString(str format) : str
#

As text by a format: D, X, B, N, F, E, P, G and a precision (255.ToString("X4") is "00FF").

ToString() : str
#
Hash() : u64
#
Equals(i64 other) : bool
#
CompareTo(i64 other) : i32
#
static Parse(str text) : i64
#

static

static TryParse(str text) : i64?
#

static

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

Constantes

const i64 MinValue = -9223372036854775808
#

The smallest i64.

const i64 MaxValue = 9223372036854775807
#

The largest i64.

Código fuente

Int64 en Antril, descompilado a partir de su Larva HIR.

System.Int64.ant
// System.Int64 — System.Core (decompiled from Larva HIR)

into namespace System
{
	[Primitive("i64")]
	public value Int64 : ISignedNumber<i64>, IHashable<i64>, IComparable<i64>, IToString
	{
		public:
			/// The smallest i64.
			const i64 MinValue = -9223372036854775808;

			/// The largest i64.
			const i64 MaxValue = 9223372036854775807;

			[Inline]
			static FromF64(f64 value) : i64 => (i64)value;

			[Inline]
			static ToF64(i64 value) : f64 => value;

			/// As text by a format: D, X, B, N, F, E, P, G and a precision (`255.ToString("X4")` is "00FF").
			ToString(str format) : str => NumberFormat.FormatInteger((u64)this, 64, true, format);

			ToString() : str => Number.Format(this);

			Hash() : u64 => (u64)this;

			Equals(i64 other) : bool => this == other;

			CompareTo(i64 other) : i32 => this < other ? -1 : this > other ? 1 : 0;

			static Parse(str text) : i64 => Number.Parse(text);

			/// The number `text` writes, or null when it writes none.
			static TryParse(str text) : i64? => Number.TryParse(text);

			static i64 Zero
			{
				get => 0;
			}

			static i64 One
			{
				get => 1;
			}

			static i64 NegativeOne
			{
				get => -1;
			}
	}
}
Esc