fractionDigits Property

 

[This feature was only implemented for MSXML 6.0.]

Returns a variant of type VT_BSTR. This variant indicates the maximum number of digits in the fractional part of a value. For more information about the fractionDigits facet, see Data Type Facets.

JScript Syntax

var varFractionDigits = oISchemaType.fractionDigits;  

Parameters

None.

Return Values

varFractionDigits
A variant. The fractionDigits facet of the restriction.

Example

The following snippet is taken from the Walk the SOM sample application. In this snippet, the fractionDigitspropertyis retrieved from the ISchemaType object.

If oType.fractionDigits > -1 Then
    res = res + printTab(t+1) + "<xsd:fractionDigits value='" & oType.fractionDigits & "'/>" + vbNewLine
End If

Visual Basic Syntax

varFractionDigits = oISchemaType.fractionDigits  

Parameters

None.

Return Values

varFractionDigits
A variant. The fractionDigits facet of the restriction.

C/C++ Syntax

HRESULT get_fractionDigits (VARIANT* fractionDigits);  

Parameters

fractionDigits[out,retval]
A variant. The fractionDigits facet value.

Return Values

S_OK
The value returned if successful.

E_POINTER
The value returned if the fractionDigits parameter is NULL.

E_FAIL
The value returned if something else is wrong.

Note

If the facet is not used, the property will return "-1".

Versioning

Implemented in: MSXML 6.0

Applies to

ISchemaType Interface

See Also

Data Type Facets
Parts of Data Types