home *** CD-ROM | disk | FTP | other *** search
/ The World of Computer Software / World_Of_Computer_Software-02-386-Vol-2of3.iso / b / baswiz19.zip / BW$BAS.ZIP / BCDINT.BAS < prev    next >
BASIC Source File  |  1993-01-29  |  754b  |  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.