IMSL C# Numerical Library

Physical.Convert Method 

Converts a value to a different set of units.

public static Physical Convert(
   Physical physical,
   string unitsNew
);

Parameters

physical
A Physical object specifying the value to be converted.
unitsNew
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

Exception Type Condition
ArgumentException is thrown if the new and old units are incompatible

See Also

Physical Class | Imsl.Math Namespace