MicroWorld BASIC allows users to define their own functions. The general form of the command is;
FNnumber = function
where number is in the range of 1..7. If a dummy variable is required, use the # sign in the function. The mode of the function is assumed to be REAL, unless it is explicitly set otherwise.
Program Example.
00100 REM Using the FN command
00110 FN1 = 78 * 90
00120 FN2 = # * COS(#)
00130 A0 = FN1(0)
00140 B0 = FN2(16)
00150 CO = FN2(20)
00160 PRINT A0,B0,C0
00170 END