Class
NumberExpression

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

Definition

Constructors

NumberExpression(double)

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

Declaration

cs-api-definition
public NumberExpression(double value)

Parameters

value

double

The value.

Fields

E

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

Declaration

cs-api-definition
public static readonly NumberExpression E

Field Value

NumberExpression

One

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

Declaration

cs-api-definition
public static readonly NumberExpression One

Field Value

NumberExpression

PI

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

Declaration

cs-api-definition
public static readonly NumberExpression PI

Field Value

NumberExpression

Zero

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

Declaration

cs-api-definition
public static readonly NumberExpression Zero

Field Value

NumberExpression

Properties

IntValue

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

Declaration

cs-api-definition
public int IntValue { get; }

Property Value

int

The integer value.