Oxygen Basic
Programming => Bugs & Feature Requests => Topic started by: Arnold on June 26, 2019, 02:43:22 PM
-
Hi Charles,
print val("+15") ", " val("-12") will output: 0, -12. Should this not be 15 ?
-
Aren't positive numbers assumed? I rarely see a + to indicate a positive number.
-
I'll update the RTLs (ascii_to_float) so that '+' is ignored at the start of a number string.
It will be treated like leading spaces:
'SKIP LEADING WHITE SPACE ETC
'
(
mov al,[rcx]
cmp al,0
jz numnok 'end of string (error)
(
cmp al,43 'ignore '+'
jnz exit
mov al,32
)
cmp al,32
jg exit 'start of word
inc rcx
repeat
)