#10 VAL() with base prefixes doesn't work

Open
opened 2 years ago by ChipMaster · 0 comments

Later classic versions of BASIC allowed prefixes to numbers to choose the number system (base) they used: &H, &O, ... VAL() would respect those prefixes while converting string numbers.

Example:

bwBASIC: ?val("&H80")
 0

That should return “128”

See “INFO/Bwbasic-Doc-2.1.txt” section 4.c for the accepted prefixes.

Later classic versions of BASIC allowed prefixes to numbers to choose the number system (base) they used: &H, &O, ... VAL() would respect those prefixes while converting string numbers. Example: ``` bwBASIC: ?val("&H80") 0 ``` That should return "128" See "INFO/Bwbasic-Doc-2.1.txt" section 4.c for the accepted prefixes.
ChipMaster added the
blunder
label 2 years ago
ChipMaster removed the
blunder
label 2 years ago
ChipMaster added the
enhancement
label 2 years ago
Sign in to join this conversation.
No Milestone
No Assignees
1 Participants
Notifications
Due Date

No due date set.

Dependencies

This issue currently doesn't have any dependencies.

Loading…
There is no content yet.