? 2 digits per character ● SmileBASIC Source

Sign In

Register
*Usernames are case-sensitive
Forgot my password
Creep into the Halloween / Horror Programming Contest (Deadline Extended)

2 digits per character

Submitted
Updated
Author
12Me21
Public Key
REMOVED
Min. Compat.
All
Rating
1 vote
Description There are "hidden" characters that are used for the numbers on the side of the edit screen. Each one has 2 digits on them, so you can use them to fit bigger numbers in small spaces.  I made a function that takes a number and converts it into a string of these characters. Instructions NUM$(number,{length|0}) number is the number to convert. length is how long the resulting string should be (zeroes will be added to the left side). If you don't want this to happen, just use 0 instead. Notes Sadly there will be no decimal or negative support. sorry. I guess you could draw the decimal using graphics though.
Categories
Keywords
1 Comment(s) 12Me21 12Me21 Admin Syntax Highlighter Received for creating the code syntax highlighter on SBS CRAP! I just noticed a huge problem! STR$ uses stupid scientific notation for big numbers... (why?) I switched to FORMAT$, and I'll post the updated version soon.