home *** CD-ROM | disk | FTP | other *** search
- Time conversion
- -----------------------------------------------------------------------------
- Version: 1.0, 980215
- Creator: Daniel Bergman.
- Descriprion: The programs makes hours, minutes and seconds into decimals
- and vice versa. If an intergrer is being inputed as a hour,
- the calculator asks for minutes and seconds. If you input a
- number with decimals, it's converted into hour, min, sec.
- Comments: "->" is the "STO>"-button, no DISP needed in the last row.
- Known bugs: None.
- Storlek: 155 bytes.
-
- For more games and programs, please visit http://ti80.burtrask.net.
-
- PROGRAM:TIME
- INPUT "HOUR?",A
- IF FPART A=0
- GOTO 2
- DISP "HOUR:"
- IF A<1
- THEN
- DISP 0
- ELSE
- IPART A->T
- FPART A->A
- DISP T
- END
- IPART (60A->T
- DISP "MIN:",T
- (FPART (60A)x60->A
- DISP "SEC:",A
- STOP
- LBL 2
- INPUT "MIN?",M
- INPUT "SEK?",S
- DISP "HOUR:"
- A+M/60+S/3600
-
- --------------------------------------------------------------------
- Copyright (C) 1998 by Daniel Bergman & Mattias MorΘn
- http://ti80.burtrask.net