Converts a value to a different set of units.

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

Syntax

C#
public static Physical Convert(
	Physical physical,
	string unitsNew
)
Visual Basic (Declaration)
Public Shared Function Convert ( _
	physical As Physical, _
	unitsNew As String _
) As Physical
Visual C++
public:
static Physical Convert(
	Physical physical, 
	String^ unitsNew
)

Parameters

physical
Type: Imsl.Math..::.Physical
A Physical object specifying the value to be converted.
unitsNew
Type: System..::.String
A String specifying the units to which physical is to be converted.

Return Value

A Physical object containing the value of physical converted to the new units.

Exceptions

ExceptionCondition
System..::.ArgumentException is thrown if the new and old units are incompatible

See Also