home *** CD-ROM | disk | FTP | other *** search
/ POINT Software Programming / PPROG1.ISO / basic / baswiz19 / examples / bcdint.bas < prev    next >
Encoding:
BASIC Source File  |  1993-01-29  |  754 b   |  15 lines

  1. '   +----------------------------------------------------------------------+
  2. '   |                                                                      |
  3. '   |        BASWIZ  Copyright (c) 1990-1993  Thomas G. Hanlin III         |
  4. '   |                                                                      |
  5. '   |                      The BASIC Wizard's Library                      |
  6. '   |                                                                      |
  7. '   +----------------------------------------------------------------------+
  8.  
  9.    DECLARE FUNCTION BCDFormat$ (Nr AS STRING, HowToFormat%, RightDigits%)
  10.    DECLARE FUNCTION BCDSet$ (NumSt$)
  11.  
  12. FUNCTION BCDInt$ (Nr AS STRING)
  13.    BCDInt$ = BCDSet$(BCDFormat$(Nr, 0, 0))
  14. END FUNCTION
  15.