Add files via upload
This commit is contained in:
parent
64c6352265
commit
35131ba393
90 changed files with 1738 additions and 0 deletions
26
math/example.bas
Normal file
26
math/example.bas
Normal file
|
@ -0,0 +1,26 @@
|
|||
#include "maplib.bas"
|
||||
|
||||
SUB MAIN
|
||||
|
||||
DIM C AS BOOLEAN
|
||||
DIM D AS DOUBLE
|
||||
DIM I AS INTEGER
|
||||
|
||||
REM IF YOU WANT TO TRY FUNCTION
|
||||
REM CONSTRAINT(),
|
||||
REM ENABLE THIS OPTION
|
||||
C = FALSE
|
||||
|
||||
D = MAPINT(249,0,360,0,100,C)
|
||||
I = MAPINT(249,0,360,0,100,C)
|
||||
|
||||
PRINT "WITHOUT ANY DECLARING: " + STR$(MAPINT(249, 0,360, 0,100, FALSE))
|
||||
PRINT ""
|
||||
|
||||
PRINT "DECLARED AS DOUBLE: " + STR$(D)
|
||||
PRINT ""
|
||||
|
||||
PRINT "DECLARED AS INTEGER: " + STR$(I)
|
||||
PRINT ""
|
||||
|
||||
END SUB
|
Loading…
Add table
Add a link
Reference in a new issue