Posted by josh on September 19, 2024 at 11:03:48:
I'm getting an error when I try to compile a numeric. I don't have the same problem when the return type is string or subroutine, so not sure what's going on here. Compiling from VS Code.
Proc Code:
1
2 .IF DECPASS
3
4 Numeric IntToFloat(num)
5
6 .ENDIF
7
8 .IF EXEPASS
9
10 Numeric IntToFloat(num)
11 length 16.8 & local f
12 print(#) num
13 input(#) f
14 procreturn f
15 end
16
17 .ENDIF
Errors:
C:\COMET\COMET\SOURCE\INC\MATH.INC (10,7): error M03: Variable referenced is incorrect type or undefined
C:\COMET\COMET\SOURCE\INC\MATH.INC (11,10): error M03: Variable referenced is incorrect type or undefined
C:\COMET\COMET\SOURCE\INC\MATH.INC (11,23): error M03: Variable referenced is incorrect type or undefined
C:\COMET\COMET\SOURCE\INC\MATH.INC (12,9): error M22: No path to this statement
C:\COMET\COMET\SOURCE\INC\MATH.INC (13,14): error M03: Variable referenced is incorrect type or undefined
C:\COMET\COMET\SOURCE\INC\MATH.INC (14,16): error M03: Variable referenced is incorrect type or undefined
Each file can be a maximum of 1MB in length Uploaded files will be purged from the server on a regular basis.