home *** CD-ROM | disk | FTP | other *** search
/ ticalc.org / ticalc_org_rev_b.iso / archives / 80 / basic / math / digitsum.80 < prev    next >
Encoding:
Text File  |  2001-07-01  |  681 b   |  28 lines

  1. Numerical value
  2. -----------------------------------------------------------------------
  3. Version: 1.0, 980214
  4. Creator: Daniel Bergman.
  5. Description: The program calculates the numerical value of a number, even decimal.
  6. Comments: "->" is the same thing as the "STO>"-button.
  7. Known bugs: None.
  8. Size: 79 bytes.
  9.  
  10. For more games and programs, please visit http://ti80.burtrask.net.
  11.  
  12. PROGRAM:NUMVALUE
  13. INPUT "NR?",T
  14. 0->X
  15. LBL 1
  16. IF FPART T=0
  17. GOTO 0
  18. 10T->T:GOTO 1
  19. LBL 0
  20. 10FPART .1T->U
  21. U+X->X
  22. INT .1T->T
  23. IF T>0:GOTO O
  24. X
  25.  
  26. --------------------------------------------------------------------
  27. Copyright (C) 1998 by Daniel Bergman & Mattias MorΘn
  28. http://ti80.burtrask.net