prog8/examples/test.p8
Irmen de Jong ee4da1a757 fix floats.parse_f() to use new kernal routine address for VAL
gives error message if it detects issues f.ex. with new kernal version that moves the routine
2023-11-27 23:58:28 +01:00

16 lines
317 B
Lua

%import textio
%import floats
%zeropage basicsafe
main {
sub start() {
txt.print("enter number: ")
str buffer = "???????????????????????????"
void txt.input_chars(buffer)
float value = floats.parse_f(buffer)
txt.nl()
floats.print_f(value)
txt.nl()
}
}