# xsd:double

The type `xsd:double`

represents an IEEE double-precision 64-bit floating-point number. The format of `xsd:double`

values is a mantissa (a number which conforms to the type `E`

" or "`e`

" followed by an exponent. The exponent must be an integer. For example, `3E2`

represents 3 times 10 to the 2nd power, or 300. The exponent must be an integer.

In addition, the following values are valid: `INF`

(infinity), `-INF`

(negative infinity), and `NaN`

(Not a Number). `INF`

is considered to be greater than all other values, while `-INF`

is less than all other values. The value `NaN`

cannot be compared to any other values, although it equals itself.

## Simple Type Information

**Namespace: ** http://www.w3.org/2001/XMLSchema

**Schema Document: **datatypes.xsd

## Content

- Based on xsd:anySimpleType
**White Space**: collapse

## Examples

Valid values | Comment |
---|---|

`-3E2` | |

`4268.22752E11` | |

`+24.3e-3` | |

`12` | |

`+3.5` | any value valid for `xsd:double` |

`-INF` | negative infinity |

`-0` | 0 |

`NaN` | Not a Number |

Invalid values | Comment |

`-3E2.4` | the exponent must be an integer |

`12E` | an exponent must be specified if "`E` " is present |

`NAN` | values are case-sensitive, must be capitalized correctly |

an empty value is not valid, unless `xsi:nil` is used |

## Type Inheritance Chain

- xsd:anySimpleType
- restricted by
**xsd:double**

- restricted by