home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / modu1096.zip / ISOsym / longstr.def < prev    next >
Text File  |  1996-08-29  |  1KB  |  39 lines

  1. DEFINITION MODULE LongStr;
  2.  
  3.   (* LONGREAL/string conversion wrapper *)
  4.  
  5. IMPORT
  6.   ConvTypes, RealStr;
  7.  
  8. TYPE
  9.   ConvResults = ConvTypes.ConvResults;
  10.         (* strAllRight, strOutOfRange, strWrongFormat, strEmpty *)
  11.  
  12. (*
  13.  * the string form of a signed fixed-point real number is
  14.  *  ["+" | "-"], decimal digit, {decimal digit}, [".", {decimal digit}]
  15.  *)
  16.  
  17. (*
  18.  * the string form of a signed floating-point real number is
  19.  *  signed fixed-point real number, "E", ["+" | "-"], decimal digit, {decimal digit}
  20.  *)
  21.  
  22.  
  23. (****************************************************************)
  24. (*                                *)
  25. (*    GPM defines LONGREAL as a type alias of REAL so no    *)
  26. (*      seperate implementation is required.              *)
  27. (*          LongStr is implemented by RealStr        *)
  28. (*                                *)
  29. (****************************************************************)
  30.  
  31. CONST
  32.   StrToReal   = RealStr.StrToReal;
  33.   RealToFloat = RealStr.RealToFloat;
  34.   RealToEng   = RealStr.RealToEng;
  35.   RealToFixed = RealStr.RealToFixed;
  36.   RealToStr   = RealStr.RealToStr;
  37.  
  38. END LongStr.
  39.