-
-
Notifications
You must be signed in to change notification settings - Fork 175
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Implement string formatting syntax in RGBASM #178
Comments
This would be the ideal general solution, though right now i'd settle for just some way to format a value as decimal rather than hex. |
Fact: we will not be passing the string directly to Considering this, what features would be desired? (Zero-padding, minimum lengths, argument reordering perhaps?) |
I would keep it simple. No argument reordering. Probably minimum leading zeroes/spaces. |
Leading zeros/spaces, and Also maybe trailing spaces with |
Implement a function,
STRFMT(spec, ...)
which takes stringspec
and formats following arguments into the fields specified in spec, similar tostd::printf
. Minimally, support %s, %d, %f, %x.should yield
The text was updated successfully, but these errors were encountered: