Converts a value to a different set of units.
Namespace: Imsl.MathAssembly: ImslCS (in ImslCS.dll) Version: 6.5.2.0
Syntax public static Physical Convert(
Physical physical,
string unitsNew
)
Public Shared Function Convert (
physical As Physical,
unitsNew As String
) As Physical
public:
static Physical Convert(
Physical physical,
String^ unitsNew
)
static member Convert :
physical : Physical *
unitsNew : string -> Physical
Parameters
- physical
- Type: Imsl.MathPhysical
A Physical object specifying the value to be converted.
- unitsNew
- Type: SystemString
A String specifying the units to which physical is to
be converted.
Return Value
Type:
Physical
A
Physical object containing the value of
physical
converted to the new units.
Exceptions Exception | Condition |
---|
ArgumentException |
is thrown if the new and old units are incompatible
|
See Also