home *** CD-ROM | disk | FTP | other *** search
/ Geek Gadgets 1 / ADE-1.bin / ade-bin / lib / gcc-lib / m68k-amigaos / 2.7.2.1 / adainclude / a-decima.ads < prev    next >
Encoding:
Text File  |  1995-10-17  |  2.1 KB  |  50 lines

  1. ------------------------------------------------------------------------------
  2. --                                                                          --
  3. --                         GNAT RUNTIME COMPONENTS                          --
  4. --                                                                          --
  5. --                          A D A . D E C I M A L                           --
  6. --                                                                          --
  7. --                                 S p e c                                  --
  8. --                                                                          --
  9. --                            $Revision: 1.8 $                              --
  10. --                                                                          --
  11. -- This specification is adapted from the Ada Reference Manual for use with --
  12. -- GNAT.  In accordance with the copyright of that document, you can freely --
  13. -- copy and modify this specification,  provided that if you redistribute a --
  14. -- modified version,  any changes that you have made are clearly indicated. --
  15. --                                                                          --
  16. ------------------------------------------------------------------------------
  17.  
  18. package Ada.Decimal is
  19. pragma Pure (Decimal);
  20.  
  21.    --  The compiler makes a number of assumptions based on the following five
  22.    --  constants (e.g. there is an assumption that decimal values can always
  23.    --  be represented in 64-bit signed binary form), so code modifications are
  24.    --  required to increase these constants.
  25.  
  26.    Max_Scale : constant := +18;
  27.    Min_Scale : constant := -18;
  28.  
  29.    Min_Delta : constant := 1.0E-18;
  30.    Max_Delta : constant := 1.0E+18;
  31.  
  32.    Max_Decimal_Digits : constant := 18;
  33.  
  34.    generic
  35.       type Dividend_Type  is delta <> digits <>;
  36.       type Divisor_Type   is delta <> digits <>;
  37.       type Quotient_Type  is delta <> digits <>;
  38.       type Remainder_Type is delta <> digits <>;
  39.  
  40.    procedure Divide
  41.      (Dividend  : in Dividend_Type;
  42.       Divisor   : in Divisor_Type;
  43.       Quotient  : out Quotient_Type;
  44.       Remainder : out Remainder_Type);
  45.  
  46. private
  47.    pragma Inline (Divide);
  48.  
  49. end Ada.Decimal;
  50.