Rogue Wave Server Component library for .NET Reference Guide
|
|
MvValueAsDouble Method |
Converts to double.
Namespace: RW.Server.Component
Assembly: RW.Server.Component (in RW.Server.Component.dll) Version: 7.0.0.0 (7.0.0.0)
Parameters
- direct (Optional)
- Type: SystemBoolean
If true, an exact type match is required. - def (Optional)
- Type: SystemDouble
The default result.
Return Value
Type: DoubleIf the match is exact, the contained value. Otherwise, and if an exact type match is not required: If the type is user-defined, the result of AsUserValue.AsDouble(def).If the type is numeric (including char), the value converted to double.If the type is bool, 1.0 if true, 0.0 if false.If the type is String, tries to parse it as a double.