| MvValueAsDouble Method |
Converts to double.
Namespace: RW.Server.ComponentAssembly: RW.Server.Component (in RW.Server.Component.dll) Version: 6.3.0.0 (0.8.0.0)
Syntax public virtual double AsDouble(
bool direct = false,
double def = 0
)
Public Overridable Function AsDouble (
Optional direct As Boolean = false,
Optional def As Double = 0
) As Double
public:
virtual double AsDouble(
bool direct = false,
double def = 0
)
Parameters
- direct (Optional)
- Type: SystemBoolean
If true, an exact type match is required. - def (Optional)
- Type: SystemDouble
The default result.
Return Value
Type:
Double
If 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.
See Also