REALINOU.LST 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. Listing:
  2. 1 (* Release 3.10 *)
  3. 2 (*-------------------------------------------------------------------------*
  4. 3 * *
  5. 4 * REALINOU.MOD - Real input/output (core library) *
  6. 5 * *
  7. 6 * COPYRIGHT (C) 1987..1992 Clarion Software Corporation. *
  8. 7 * All Rights Reserved *
  9. 8 * *
  10. 9 *--------------------------------------------------------------------------*)
  11. 10
  12. 11 (*$V-*)
  13. 12 IMPLEMENTATION MODULE RealInOut ;
  14. 13
  15. 14 IMPORT IO,Str,InOut ;
  16. 15
  17. 16
  18. 17
  19. 18 PROCEDURE ReadReal ( VAR v : REAL ) ;
  20. 19 VAR s : ARRAY[0..80] OF CHAR;
  21. ***** ^ not supported yet
  22. ***** ^ not supported yet
  23. 20 r,a : LONGREAL;
  24. 21 BEGIN
  25. 22 InOut.ReadString( s );
  26. ***** ^ not supported yet
  27. ***** ^ not supported yet
  28. ***** ^ not supported yet
  29. 23 r := Str.StrToReal( s,Done );
  30. ***** ^ not supported yet
  31. ***** ^ not supported yet
  32. ***** ^ not supported yet
  33. ***** ^ undeclared identifier
  34. 24 a := ABS( r );
  35. ***** ^ undeclared identifier
  36. ***** ^ not supported yet
  37. 25 Done := Done AND (a >= 1.2E-38 ) AND (a <= 3.4E38 );
  38. ***** ^ undeclared identifier
  39. ***** ^ undeclared identifier
  40. 26 v := REAL(r) ;
  41. ***** ^ not supported yet
  42. 27 END ReadReal;
  43. ***** ^ not supported yet
  44. 28
  45. 29 PROCEDURE WriteReal ( v : REAL ; w : CARDINAL ) ;
  46. 30 BEGIN
  47. 31 IO.WrReal(v,MAX(CARDINAL),INTEGER(w)) ;
  48. ***** ^ not supported yet
  49. ***** ^ not supported yet
  50. ***** ^ undeclared identifier
  51. ***** ^ not supported yet
  52. ***** ^ not supported yet
  53. 32 Done := IO.OK ;
  54. ***** ^ undeclared identifier
  55. ***** ^ not supported yet
  56. ***** ^ not supported yet
  57. 33 END WriteReal ;
  58. ***** ^ not supported yet
  59. 34
  60. 35 BEGIN
  61. 36 Done := TRUE ;
  62. ***** ^ undeclared identifier
  63. 37 END RealInOut.
  64. ***** ^ not supported yet
  65. 26 errors