Closed lvcabral closed 1 year ago
Two issues found, first non numeric numbers are returning NaN instead of 0 and the function should recognize the prefix 0x for hexadecimals.
NaN
0
0x
Running this code:
print val("1") print val("0xFF") print val("AA", 16) print val("notanumber")
In Roku we get:
1 255 170 0
With brs we get:
brs
1 0 170 NaN
Two issues found, first non numeric numbers are returning
NaN
instead of0
and the function should recognize the prefix0x
for hexadecimals.Running this code:
In Roku we get:
With
brs
we get: