New to Telerik Document ProcessingStart a free 30-day trial

Represents a constant numeric value in a formula expression; provides commonly used numeric constants and validation.

Definition

Constructors

Initializes a new instance of the NumberExpression class with the specified numeric value, which must be a valid finite number.

C#
public NumberExpression(double value)
Parameters:valuedouble

The value.

Fields

A constant expression representing Euler's number (e), approximately 2.71828.

C#
public static readonly NumberExpression E

A constant expression representing the numeric value one (1).

C#
public static readonly NumberExpression One

A constant expression representing pi (π), approximately 3.14159.

C#
public static readonly NumberExpression PI

A constant expression representing the numeric value zero (0).

C#
public static readonly NumberExpression Zero

Properties

Gets the numeric value cast to an integer, truncating any fractional part.

C#
public int IntValue { get; }
Property Value:

The integer value.