Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Force 4.0 Reference - dbl double-precision floating-point data type http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 dbl                 Double-precision floating-point data type
------------------------------------------------------------------------------
 Syntax
   dbl

 Arguments
   None.

 Features
   +----------------------------------------------------------------------+
   | Category             | numeric (floating point)                      |
   | Size                 | 8 bytes                                       |
   | Range                | -2.2e-308 to 1.7e308                          |
   | Parameter: value     | yes                                           |
   | Parameter: reference | yes                                           |
   | Parameter: const     | yes                                           |
   | Return               | yes                                           |
   +----------------------------------------------------------------------+

 Description
   The dbl (double precision) data type may store any real number in
   the range 2.2x10-308 to 1.7x10308 to -2.2x10-308 to -1.7x10308. dbl data
   type variables store their numeric information using the IEEE double
   precision standard format: 11 bits for an exponent, 52 bits for a
   normalized mantissa, and 1 bit for the sign of the number, resulting
   in a standard 64 bit (8 byte) double precision value.

   63 62      52 51                                  0
   +-------------------------------------------------+
   |s| exponent |               mantissa             |
   +-------------------------------------------------+

   The true exponent is the exponent value minus a bias of 0x03ff.

 Example
   #define EXAMPLE_DATATYPE
   #include example.hdr

   proc Test_dbl
   vardef
      dbl  eNum
      int  n
   enddef
   n := 0
   eNum := 0
   ? n:2, eNum:10:2
   eNum := 1
   for n := 1 to 20
      ? n:2, eNum:10:2
      eNum *= 10
   next
   endproc

   proc main
   Test_dbl()
   endproc

See Also: long

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson