XPathAtomicValue.EffectiveNumericValue MethodXPathAtomicValue.EffectiveNumericValue MethodXPathAtomicValue::EffectiveNumericValue Method
Returns the effective numeric value of this item.
Return Value
Type: System.DoubleSystem.DoubleSystem::Double
The effective numeric value of this item.
Remarks
The effective boolean value of an item is computed as follows:
- If the item is of type
xs:doubleor derived fromxs:double, returns the ValueAsDoubleValueAsDoubleValueAsDouble. - If the item is of type
xs:floator derived fromxs:float, returns the ValueAsSingleValueAsSingleValueAsSingle cast to type doubleDoubledouble. - If the item is of type
xs:decimalor derived fromxs:decimal, returns the ValueAsDecimalValueAsDecimalValueAsDecimal cast to type doubleDoubledouble. - If the item is of type
xs:booleanor derived fromxs:boolean, returns1.0E0if ValueAsBooleanValueAsBooleanValueAsBoolean istrueTruetrue, or0.0E0if ValueAsBooleanValueAsBooleanValueAsBoolean isfalseFalsefalse. - If the item is of type
xs:stringorxs:untypedAtomic, or a type derived from one of these, returns the ValueAsStringValueAsStringValueAsString parsed as a doubleDoubledouble, or NaNNaNNaN if ValueAsStringValueAsStringValueAsString is not a valid lexical representation ofxs:double. - In all other cases, NaNNaNNaN is returned.
