Test additional content header

NumberOf(Decimal, String) Method

Creates a new named Number instance.

Definition

Namespace: Fluent.Calculations.Primitives.BaseTypes
Assembly: Fluent.Calculations.Primitives (in Fluent.Calculations.Primitives.dll) Version: 1.1.0-aplha
public static Number Of(
	decimal primitiveValue,
	string fieldName = "NaN"
)

Parameters

primitiveValue  Decimal
Constant or variable to be used as a Primitive of the new Number.
fieldName  String  (Optional)
Name of the Number (automatically defined by at compile time)

Return Value

Number
Number instance representing the supplied numeric value.

Remarks

This is one of prefered ways to create Number using a primitive value. Scope of the number will be updated during the evaluation.

See Also