Name

xs:totalDigits — Allows you to specify the number of significant digits used in a value

Applies to

xs:byte, xs:decimal, xs:int, xs:integer, xs:long, xs:negativeInteger, xs:nonNegativeInteger, xs:nonPositiveInteger, xs:positiveInteger, xs:short, xs:time, xs:unsignedByte, xs:unsignedInt, xs:unsignedLong, xs:unsignedShort

Attributes

value

An xs:nonNegativeInteger

Operation

The number in value specifies the number of significant digits allowed in the number contained by the type. Despite the presence of other numeric types, xs:totalDigits is only available for use with xs:decimal and types containing integer values.

Get XML Pocket Reference, 3rd Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.