11-19-2022, 02:10 AM
(11-19-2022, 01:43 AM)PhilOfPerth Wrote:(11-18-2022, 11:26 PM)CharlieJV Wrote: Note: I've got a few things I need to fix up to make this a QB64-compatible program.An interesting conversion project. That keypad raises a chuckle! I see it even copes with divide by zero with a polite message instead of Error!!!
As-is, it is a fun for-the-giggles bit of code to glance at.
EDIT: You'll notice a bit of a mixed bag of choices (like using GOSUB's and SUB's; every BAM program is an opportunity to do sanity checks on as many statements/styles I can squeeze in there without getting too messy.
Oops, I never thought of checking for division by zero. Good catch!
That "infinity" error, pretty sure that's native javascript handling. Me not liking javascript much, that I like.