2.2.6.5. Subrange Types | Table of Contents | 2.2.6.7. Pointer Types |

2. TMT Pascal Language Description

2.2. Pascal Language Structure

2.2.6. Types

2.2.6.6. Real Types

Real data types contain integer values as well as a fractional portion. Also known as floating point numbers, each real type consists of a significant, the fractional part, and an exponent, which is a power of ten.

TMT Pascal follows the IEEE standard for floating point number representation. There are five real data types available under TMT Pascal: Real48, Real, Single, Double, and Extended.

Type | Range | Format |
---|---|---|

Single | 1.5 x 10^{-45} .. 3.4 x 10^{38} |
6 to 7 significant digits, 32-bit |

Real48 | 2.9 x 10^{-39} .. 1.7 x 10^{38} |
11 to 12 significant digits, 48-bit |

Real | 2.9 x 10^{-39} .. 1.7 x 10^{38} |
11 to 12 significant digits, 48-bit |

Double | 5.0 x 10^{-324} .. 1.7 x 10^{308} |
15 to 16 significant digits, 64-bit |

Extended | 1.9 x 10^{-4951} .. 1.1 x 10^{4932} |
19-20 significant digits, 80-bit |

Real48 is maintained for backward compatibility with older versions of the compiler. Since its storage format is not native to the Intel CPU's, it results in slower performance than other floating-point types.

2.2.6.5. Subrange Types | Table of Contents | 2.2.6.7. Pointer Types |