home *** CD-ROM | disk | FTP | other *** search
/ Simtel MSDOS - Coast to Coast / simteldosarchivecoasttocoast2.iso / calculat / sm30a.zip / TYPE.KEY < prev    next >
Text File  |  1993-11-07  |  825b  |  30 lines

  1. * type                                                internal
  2. type(x) gives the type of x. Its value is a string.
  3.   e.g.
  4. ------------------------------
  5. x                   type(x)
  6.  
  7. 1                   "integer"
  8. 1.1                 "real"
  9. 2/3                 "ratio"
  10. 1+i                 "complex"
  11. sin(x)              "sin()"
  12. [1,2]               "[]"
  13. a                   "variable"
  14. a+b                 "+"
  15. a*b                 "*"
  16. a^b                 "^"
  17. "a"                 "string"
  18. a=b                 "="
  19. a==b                "=="
  20. a>b                 ">"
  21. a>=b                ">="
  22. a<b                 "<"
  23. a<=b                "<="
  24. a<>b                "<>"
  25. a,b                 ","
  26. ---------------------------------
  27.  
  28.         You also can test x, e.g. if x is type of real number, by
  29. type(x)=="real".
  30.