Test additional content header

NumberOf(Decimal, String, String) Method

Creates a new named Number instance with named scope.

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 scope,
	string fieldName = "NaN"
)

Parameters

primitiveValue  Decimal
Constant or variable to be used as a Primitive of the new Number.
scope  String
Target scope which the value will be part of.
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.

See Also