NumberAbbreviation

Struct in Zigurous.Math

Declaration

[Serializable]
public struct NumberAbbreviation

Description

Represents how a number is abbreviated to a string.

Static Properties

thousandsAn abbreviation for numbers in the thousands (Read only).
millionsAn abbreviation for numbers in the millions (Read only).
billionsAn abbreviation for numbers in the billions (Read only).
trillionsAn abbreviation for numbers in the trillions (Read only).
commonA predefined set of common number abbreviations (Read only).

Properties

factorThe number factor after which the abbreviation is applied.
formatThe string format of the abbreviated number.

Constructors

NumberAbbreviationCreates a new number abbreviation with a given factor and format.

Methods

FormatAbbreviates a number to a string.