Table of Contents

Class NumericToken

Namespace
UglyToad.PdfPig.Tokens
Assembly
UglyToad.PdfPig.Tokens.dll

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 decimal

The number to represent.

Fields

Eight

Single instance of numeric token for 8.

public static readonly NumericToken Eight

Field Value

NumericToken

Eighteen

Single instance of numeric token for 18.

public static readonly NumericToken Eighteen

Field Value

NumericToken

Eleven

Single instance of numeric token for 11.

public static readonly NumericToken Eleven

Field Value

NumericToken

Fifteen

Single instance of numeric token for 15.

public static readonly NumericToken Fifteen

Field Value

NumericToken

Five

Single instance of numeric token for 5.

public static readonly NumericToken Five

Field Value

NumericToken

FiveHundred

Single instance of numeric token for 500.

public static readonly NumericToken FiveHundred

Field Value

NumericToken

Four

Single instance of numeric token for 4.

public static readonly NumericToken Four

Field Value

NumericToken

Fourteen

Single instance of numeric token for 14.

public static readonly NumericToken Fourteen

Field Value

NumericToken

MinusOne

Single instance of numeric token for -1.

public static readonly NumericToken MinusOne

Field Value

NumericToken

Nine

Single instance of numeric token for 9.

public static readonly NumericToken Nine

Field Value

NumericToken

Nineteen

Single instance of numeric token for 19.

public static readonly NumericToken Nineteen

Field Value

NumericToken

One

Single instance of numeric token for 1.

public static readonly NumericToken One

Field Value

NumericToken

OneHundred

Single instance of numeric token for 100.

public static readonly NumericToken OneHundred

Field Value

NumericToken

OneThousand

Single instance of numeric token for 1000.

public static readonly NumericToken OneThousand

Field Value

NumericToken

Seven

Single instance of numeric token for 7.

public static readonly NumericToken Seven

Field Value

NumericToken

Seventeen

Single instance of numeric token for 17.

public static readonly NumericToken Seventeen

Field Value

NumericToken

Six

Single instance of numeric token for 6.

public static readonly NumericToken Six

Field Value

NumericToken

Sixteen

Single instance of numeric token for 16.

public static readonly NumericToken Sixteen

Field Value

NumericToken

Ten

Single instance of numeric token for 10.

public static readonly NumericToken Ten

Field Value

NumericToken

Thirteen

Single instance of numeric token for 13.

public static readonly NumericToken Thirteen

Field Value

NumericToken

Three

Single instance of numeric token for 3.

public static readonly NumericToken Three

Field Value

NumericToken

Twelve

Single instance of numeric token for 12.

public static readonly NumericToken Twelve

Field Value

NumericToken

Twenty

Single instance of numeric token for 20.

public static readonly NumericToken Twenty

Field Value

NumericToken

Two

Single instance of numeric token for 2.

public static readonly NumericToken Two

Field Value

NumericToken

Zero

Single instance of numeric token for 0.

public static readonly NumericToken Zero

Field Value

NumericToken

Properties

Data

public decimal Data { get; }

Property Value

decimal

Double

The value of this number as a double.

public double Double { get; }

Property Value

double

HasDecimalPlaces

Whether the number represented has a non-zero decimal part.

public bool HasDecimalPlaces { get; }

Property Value

bool

Int

The value of this number as an int.

public int Int { get; }

Property Value

int

Long

The value of this number as a long.

public long Long { get; }

Property Value

long

Methods

Equals(IToken)

public bool Equals(IToken obj)

Parameters

obj IToken

Returns

bool

GetHashCode()

public override int GetHashCode()

Returns

int

ToString()

public override string ToString()

Returns

string