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
/
BCDNEG.BAS
< prev
next >
Wrap
BASIC Source File
|
1993-01-29
|
799b
|
18 lines
' +----------------------------------------------------------------------+
' | |
' | BASWIZ Copyright (c) 1990-1993 Thomas G. Hanlin III |
' | |
' | The BASIC Wizard's Library |
' | |
' +----------------------------------------------------------------------+
DECLARE FUNCTION BCDSgn% (Nr AS STRING)
FUNCTION BCDNeg$ (Nr AS STRING)
SELECT CASE BCDSgn%(Nr)
CASE -1: BCDNeg$ = " " + MID$(Nr, 2)
CASE 0: BCDNeg$ = Nr
CASE 1: BCDNeg$ = "-" + MID$(Nr, 2)
END SELECT
END FUNCTION