PdfReal Class

A real number (ISO 32000-2, 7.3.3). It is written without exponent, with at most six decimals.

public sealed class PdfReal : PdfNumber, IEquatable<PdfReal>
Inheritance
PdfNumber PdfReal
Implements

Properties

NameDescription
DoubleValueGets the value as a double-precision number.
KindGets the kind of the object.
ValueGets the value.

DoubleValue

PdfReal.cs

Gets the value as a double-precision number.

public override double DoubleValue { get; }

Property value

double

Gets the kind of the object.

public override PdfObjectKind Kind { get; }

Property value

PdfObjectKind

Gets the value.

public double Value { get; }

Property value

double

Methods

NameDescription
Equals(PdfReal?)Indicates whether the current object is equal to another object of the same type.
Equals(object?)Determines whether the specified object is equal to the current object.
Get(double)Creates a real number.
GetHashCode()Serves as the default hash function.

Equals overloads

Equals(PdfReal?)

PdfReal.cs

Indicates whether the current object is equal to another object of the same type.

public bool Equals(PdfReal? other)
Parameters
other PdfReal?
An object to compare with this object.
Returns

bool true if the current object is equal to the other parameter; otherwise, false.

Equals(object?)

PdfReal.cs

Determines whether the specified object is equal to the current object.

public override bool Equals(object? obj)
Parameters
obj object?
The object to compare with the current object.
Returns

bool true if the specified object is equal to the current object; otherwise, false.

Get(double)

PdfReal.cs

Creates a real number.

public static PdfReal Get(double value)

Parameters

value double
The value, a finite number.

Returns

PdfReal The real number.

Exceptions

ArgumentOutOfRangeException
value is not finite.

GetHashCode()

PdfReal.cs

Serves as the default hash function.

public override int GetHashCode()

Returns

int A hash code for the current object.