home *** CD-ROM | disk | FTP | other *** search
/ PC World 2005 December / PCWorld_2005-12_cd.bin / software / topware / partlogic / partlogic-0.57-iso.exe / partlogic-0.57.iso / system / headers / float.h < prev    next >
Text File  |  2005-08-29  |  3KB  |  72 lines

  1. // 
  2. //  Visopsys
  3. //  Copyright (C) 1998-2005 J. Andrew McLaughlin
  4. //  
  5. //  This library is free software; you can redistribute it and/or modify it
  6. //  under the terms of the GNU Lesser General Public License as published by
  7. //  the Free Software Foundation; either version 2.1 of the License, or (at
  8. //  your option) any later version.
  9. //
  10. //  This library is distributed in the hope that it will be useful, but
  11. //  WITHOUT ANY WARRANTY; without even the implied warranty of
  12. //  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU Lesser
  13. //  General Public License for more details.
  14. //
  15. //  You should have received a copy of the GNU Lesser General Public License
  16. //  along with this library; if not, write to the Free Software Foundation,
  17. //  Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
  18. //
  19. //  float.h
  20. //
  21.  
  22. // This is the Visopsys version of the standard header file float.h
  23.  
  24.  
  25. #if !defined(_FLOAT_H)
  26.  
  27. // These values are intelligent guesses based on reconciling the float.h
  28. // files from linux and solaris on i386 machines, and based on the
  29. // 'Standard C' specification Copyright (c) 1989-1996 by P.J. Plauger
  30. // and Jim Brodie.
  31.  
  32. #define DBL_DIG         15               // <integer rvalue >= 10>
  33. #define DBL_EPSILON     2.2204460492503131E-16
  34.                                          // <double rvalue <= 10^(-9)>
  35. #define DBL_MANT_DIG    53               // <integer rvalue>
  36. #define DBL_MAX         1.7976931348623157E+308
  37.                                          // <double rvalue >= 10^37>
  38. #define DBL_MAX_10_EXP  308              // <integer rvalue >= 37>
  39. #define DBL_MAX_EXP     1024             // <integer rvalue>
  40. #define DBL_MIN         2.2250738585072014E-308
  41.                                          // <double rvalue <= 10^(-37)>
  42. #define DBL_MIN_10_EXP  -307             // <integer rvalue <= -37>
  43. #define DBL_MIN_EXP     -1021            // <integer rvalue>
  44.  
  45. #define FLT_DIG         6                // <integer rvalue >= 10>
  46. #define FLT_EPSILON     1.19209290e-07F  // <double rvalue <= 10^(-9)>
  47. #define FLT_MANT_DIG    24               // <integer rvalue>
  48. #define FLT_MAX         3.402823466E+38F // <float rvalue >= 10^37>
  49. #define FLT_MAX_10_EXP  38               // <integer rvalue >= 37>
  50. #define FLT_MAX_EXP     128              // <integer rvalue>
  51. #define FLT_MIN         1.175494351E-38F // <float rvalue <= 10^(-37)>
  52. #define FLT_MIN_10_EXP  -37              // <integer rvalue <= -37>
  53. #define FLT_MIN_EXP     -125             // <integer rvalue>
  54. #define FLT_RADIX       2                // <#if expression >= 2>
  55. #define FLT_ROUNDS      1                // <integer rvalue>
  56.  
  57. #define LDBL_DIG        18               // <integer rvalue >= 10>
  58. #define LDBL_EPSILON    1.0842021724855044340075E-19L
  59.                                          // <long double rvalue <= 10^(-9)>
  60. #define LDBL_MANT_DIG   64               // <integer rvalue>
  61. #define LDBL_MAX        1.1897314953572317650213E+4932L
  62.                                          // <long double rvalue >= 10^37>
  63. #define LDBL_MAX_10_EXP 4932             // <integer rvalue >= 37>
  64. #define LDBL_MAX_EXP    16384            // <integer rvalue>
  65. #define LDBL_MIN        3.362103143112093506262677817321752603E-4932L
  66.                                          // <long double rvalue <= 10^(-37)>
  67. #define LDBL_MIN_10_EXP 4931             // <integer rvalue <= -37>
  68. #define LDBL_MIN_EXP    -16381           // <integer rvalue> 
  69.  
  70. #define _FLOAT_H
  71. #endif
  72.