File: abs.bas

package info (click to toggle)
bwbasic 2.20pl2-8
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 1,204 kB
  • ctags: 1,248
  • sloc: ansic: 21,002; makefile: 116
file content (5 lines) | stat: -rw-r--r-- 154 bytes parent folder | download | duplicates (12)
1
2
3
4
5
10 rem ABS.BAS -- Test ABS() function
20 X = -1.23456789
30 ABSX = ABS( X )
40 print "The absolute value of "; X; " is"; ABSX
50 print "Is that correct?"