Struct
Int64
struct long
Module: System
Assembly: System.Runtime.dll
Source file: Int64.rvn
Inheritance: Object → ValueType → Int64
Implements: EquatableTo<Int64>, Formattable, Number
A signed 64-bit integer.
Properties
4 items
Static member:
MaxValue: long
Gets 9223372036854775807, the largest signed 64-bit value.
Static member:
MinValue: long
Gets -9223372036854775808, the smallest signed 64-bit value.
Static member:
One: long
Development: gets one for this numeric type.
Static member:
Zero: long
Development: gets zero for this numeric type.
Methods
11 items
CompareTo(other: Self) -> int
Compares this value with the other value; returns a negative integer, zero or a positive integer for less than, equal to or greater than.
Required implementation (no default). Defined by ComparableTo<Self>.CompareTo · Defined by ComparableTo<Self>.CompareTo
CompareTo(other: long) -> int
Compares this value with the other value; returns a negative integer, zero or a positive integer for less than, equal to or greater than.
Equals(other: long) -> bool
Tests equality with another value of the same type without boxing.
Implements EquatableTo<Int64>.Equals
Equals(other: object?) -> bool
Tests reference identity by default; an ordinary class may override equality.
Inherited from Object.Equals
GetHashCode() -> int
Returns a stable identity hash by default; an ordinary class may override it consistently with equality.
Inherited from Object.GetHashCode
GetType() -> TypeInfo
Returns metadata for the concrete runtime type of this instance.
Inherited from Object.GetType
Static member:
Parse(text: string, culture: Culture) -> Result<long, NumberParseError>
Parses explicit culture punctuation with strict three-digit grouping; whitespace is not accepted.
Static member:
Parse(value: string) -> Result<long, NumberParseError>
Parses strict signed ASCII decimal text as a 64-bit integer.
ToString() -> string
Formats the value as culture-independent ASCII decimal text.
ToString(format: string, culture: Culture) -> string
Formats with explicit culture. D pads integer digits; F adds fractional zeros; N also groups. Unsupported specifiers or precision fault. Parsing remains invariant.
Implements Formattable.ToString
ToString(format: string) -> string
Formats with the current culture. Supports empty/G/G0, D, F and N; D/F/N precision is 0–99.
Operators
4 items
Static member:
operator +(left: long, right: long) -> long
Development: Adds two values.
Static member:
operator /(left: long, right: long) -> long
Development: Divides left by right.
Static member:
operator *(left: long, right: long) -> long
Development: Multiplies two values.
Static member:
operator -(left: long, right: long) -> long
Development: Subtracts right from left.