15.2.21. XSD numeric data type

发布时间 : 2025-10-25 13:35:27 UTC      

Page Views: 10 views

Decimal data type

The decimal data type is used to specify a numeric value.

The following is an example of a decimal number declaration in a scheme.

<xs:element name="prize" type="xs:decimal"/> 

The elements in the document should look like this:

<prize>999.50prize>    

Or something like this:

<prize>+999.5450prize>    

Or something like this:

<prize>-999.5230prize>    

Or something like this:

<prize>0prize>    

Or something like this:

<prize>14prize>    

注意: The maximum number of decimal digits you can specify is 18 digits.

Integer data type

Integer data types are used to specify values that have no decimal components.

The following is an example of an integer declaration in a scheme.

<xs:element name="prize" type="xs:integer"/> 

The elements in the document should look like this:

<prize>999prize>    

Or something like this:

<prize>+999prize>    

Or something like this:

<prize>-999prize>    

Or something like this:

<prize>0prize>     

Numeric data type

Note that all of the following data types are derived from decimal data types (except decimal itself)!

First name

Number of seconds

Byte

8-bit integers with plus or minus

Decimal

Decimal number

Int

32-bit integers with plus or minus

Integer

Integer value

Long

64-bit integers with plus or minus

NegativeInteger

Integers that contain only negative values (.,-2,-1.)

NonNegativeInteger

Contains only integers with non-negative values (0,1,2,..)

NonPositiveInteger

Only integers that contain non-positive values (.,-2,-1, 0)

PositiveInteger

Integers containing only positive values (1, 2,..)

Short

16-bit integers with plus or minus

UnsignedLong

64-bit integers without positive or negative

UnsignedInt

32-bit integers without positive or negative

UnsignedShort

16-bit integers without positive or negative

UnsignedByte

An 8-bit integer with no positive or negative

Qualification of numeric data types (Restriction)

Restrictions that can be used with numeric data types:

  • Enumeration

  • FractionDigits

  • MaxExclusive

  • MaxInclusive

  • MinExclusive

  • MinInclusive

  • Pattern

  • TotalDigits

  • WhiteSpace

《地理信息系统原理、技术与方法》  97

最近几年来,地理信息系统无论是在理论上还是应用上都处在一个飞速发展的阶段。 GIS被应用于多个领域的建模和决策支持,如城市管理、区划、环境整治等等,地理信息成为信息时代重要的组成部分之一; “数字地球”概念的提出,更进一步推动了作为其技术支撑的GIS的发展。 与此同时,一些学者致力于相关的理论研究,如空间感知、空间数据误差、空间关系的形式化等等。 这恰好说明了地理信息系统作为应用技术和学科的两个方面,并且这两个方面构成了相互促进的发展过程。