Class NumericToken
PDF supports integer and real numbers. Integer objects represent mathematical integers within a certain interval centered at 0. Real objects approximate mathematical real numbers, but with limited range and precision. This token represents both types and they are used interchangeably in the specification.
public class NumericToken : IDataToken<decimal>, IToken, IEquatable<IToken>
- Inheritance
-
NumericToken
- Implements
- Inherited Members
Constructors
NumericToken(decimal)
Create a NumericToken.
public NumericToken(decimal value)
Parameters
value
decimalThe number to represent.
Fields
Eight
Single instance of numeric token for 8.
public static readonly NumericToken Eight
Field Value
Eighteen
Single instance of numeric token for 18.
public static readonly NumericToken Eighteen
Field Value
Eleven
Single instance of numeric token for 11.
public static readonly NumericToken Eleven
Field Value
Fifteen
Single instance of numeric token for 15.
public static readonly NumericToken Fifteen
Field Value
Five
Single instance of numeric token for 5.
public static readonly NumericToken Five
Field Value
FiveHundred
Single instance of numeric token for 500.
public static readonly NumericToken FiveHundred
Field Value
Four
Single instance of numeric token for 4.
public static readonly NumericToken Four
Field Value
Fourteen
Single instance of numeric token for 14.
public static readonly NumericToken Fourteen
Field Value
MinusOne
Single instance of numeric token for -1.
public static readonly NumericToken MinusOne
Field Value
Nine
Single instance of numeric token for 9.
public static readonly NumericToken Nine
Field Value
Nineteen
Single instance of numeric token for 19.
public static readonly NumericToken Nineteen
Field Value
One
Single instance of numeric token for 1.
public static readonly NumericToken One
Field Value
OneHundred
Single instance of numeric token for 100.
public static readonly NumericToken OneHundred
Field Value
OneThousand
Single instance of numeric token for 1000.
public static readonly NumericToken OneThousand
Field Value
Seven
Single instance of numeric token for 7.
public static readonly NumericToken Seven
Field Value
Seventeen
Single instance of numeric token for 17.
public static readonly NumericToken Seventeen
Field Value
Six
Single instance of numeric token for 6.
public static readonly NumericToken Six
Field Value
Sixteen
Single instance of numeric token for 16.
public static readonly NumericToken Sixteen
Field Value
Ten
Single instance of numeric token for 10.
public static readonly NumericToken Ten
Field Value
Thirteen
Single instance of numeric token for 13.
public static readonly NumericToken Thirteen
Field Value
Three
Single instance of numeric token for 3.
public static readonly NumericToken Three
Field Value
Twelve
Single instance of numeric token for 12.
public static readonly NumericToken Twelve
Field Value
Twenty
Single instance of numeric token for 20.
public static readonly NumericToken Twenty
Field Value
Two
Single instance of numeric token for 2.
public static readonly NumericToken Two
Field Value
Zero
Single instance of numeric token for 0.
public static readonly NumericToken Zero
Field Value
Properties
Data
public decimal Data { get; }
Property Value
Double
The value of this number as a double.
public double Double { get; }
Property Value
HasDecimalPlaces
Whether the number represented has a non-zero decimal part.
public bool HasDecimalPlaces { get; }
Property Value
Int
The value of this number as an int.
public int Int { get; }
Property Value
Long
The value of this number as a long.
public long Long { get; }
Property Value
Methods
Equals(IToken)
public bool Equals(IToken obj)
Parameters
obj
IToken
Returns
GetHashCode()
public override int GetHashCode()
Returns
ToString()
public override string ToString()