NUMTYPES.LST 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101
  1. Listing:
  2. 1 IMPLEMENTATION MODULE NumTypes;
  3. 2 (*
  4. 3 * REPERTOIRE
  5. 4 * Release 1.6
  6. 5 * By Charles Bradford and Cole Brecheen
  7. 6 * (c) Copyright 1985-1990 PMI
  8. 7 * Portland, Oregon
  9. 8 * All rights reserved
  10. 9 * (503) 236-1788
  11. 10 *
  12. 11 * $Header: D:/logfiles/masters/numtmod.jpv 1.1 03 Dec 1990 22:49:30 coleb $
  13. 12 *
  14. 13 *)
  15. 14
  16. 15 VAR
  17. 16 Initialized : BOOLEAN;
  18. 17
  19. 18 PROCEDURE Init();
  20. 19 BEGIN
  21. 20 IF Initialized THEN
  22. 21 RETURN;
  23. 22 ELSE
  24. 23 Initialized := TRUE;
  25. 24 END;
  26. 25 L0 := VAL( LONGINT, 0 );
  27. ***** ^ undeclared identifier
  28. ***** ^ undeclared identifier
  29. ***** ^ not supported yet
  30. 26 L1 := VAL( LONGINT, 1 );
  31. ***** ^ undeclared identifier
  32. ***** ^ undeclared identifier
  33. ***** ^ not supported yet
  34. 27 L2 := VAL( LONGINT, 2 );
  35. ***** ^ undeclared identifier
  36. ***** ^ undeclared identifier
  37. ***** ^ not supported yet
  38. 28 L65535 := VAL( LONGINT, 65535 );
  39. ***** ^ undeclared identifier
  40. ***** ^ undeclared identifier
  41. ***** ^ not supported yet
  42. 29 R8TenPowers[0] := 10.0;
  43. ***** ^ undeclared identifier
  44. ***** ^ not supported yet
  45. 30 R8TenPowers[1] := 100.0;
  46. ***** ^ undeclared identifier
  47. ***** ^ not supported yet
  48. 31 R8TenPowers[2] := 10000.0;
  49. ***** ^ undeclared identifier
  50. ***** ^ not supported yet
  51. 32 R8TenPowers[3] := 1.0E8;
  52. ***** ^ undeclared identifier
  53. ***** ^ not supported yet
  54. 33 R8TenPowers[4] := 1.0E16;
  55. ***** ^ undeclared identifier
  56. ***** ^ not supported yet
  57. 34 R8TenPowers[5] := 1.0E32;
  58. ***** ^ undeclared identifier
  59. ***** ^ not supported yet
  60. 35 R8TenPowers[6] := 1.0E64;
  61. ***** ^ undeclared identifier
  62. ***** ^ not supported yet
  63. 36 R8TenPowers[7] := 1.0E128;
  64. ***** ^ undeclared identifier
  65. ***** ^ not supported yet
  66. 37 R8TenPowers[8] := 1.0E256;
  67. ***** ^ undeclared identifier
  68. ***** ^ not supported yet
  69. 38 END Init;
  70. ***** ^ not supported yet
  71. 39
  72. 40 (* JPI version *)
  73. 41
  74. 42 PROCEDURE REALToReal8( TheReal: REAL ): Real8;
  75. ***** ^ undeclared identifier
  76. 43 BEGIN
  77. 44 RETURN VAL( Real8, TheReal );
  78. ***** ^ undeclared identifier
  79. ***** ^ undeclared identifier
  80. ***** ^ not supported yet
  81. 45 END REALToReal8;
  82. ***** ^ not supported yet
  83. 46
  84. 47 PROCEDURE Real8ToREAL( TheReal8: Real8 ): REAL;
  85. ***** ^ undeclared identifier
  86. 48 BEGIN
  87. 49 RETURN VAL( REAL, TheReal8 );
  88. ***** ^ undeclared identifier
  89. ***** ^ not supported yet
  90. 50 END Real8ToREAL;
  91. ***** ^ not supported yet
  92. 51
  93. 52 BEGIN
  94. 53 Initialized := FALSE;
  95. 54 END NumTypes.
  96. ***** ^ not supported yet
  97. 41 errors