Returns the value of a constant, given its name, in the specified units.

Namespace: Imsl.Math
Assembly: ImslCS (in ImslCS.dll) Version: 6.5.0.0

Syntax

C#
public static double Constant(
	string name,
	string units
)
Visual Basic (Declaration)
Public Shared Function Constant ( _
	name As String, _
	units As String _
) As Double
Visual C++
public:
static double Constant(
	String^ name, 
	String^ units
)

Parameters

name
Type: System..::.String
A String representing the name of the constant to be returned.
units
Type: System..::.String
A String representing the units in which the constant is to be returned.

Return Value

A double containing the value of the constant in the specified units.

Exceptions

ExceptionCondition
System..::.ArgumentException is thrown if the constant name is undefined

See Also