Given an integer like 255, how to print it as 1111_1111 or similar? Is there some builtin, or need to write my own?
Many languages allow providing a base to to_str, but I don't see anything similar in Roc.
Are there any open issues about number formatting? I feel like weve discussed this but I dont remember which way it went.
I could not find.
Found one about parsing:
https://github.com/roc-lang/roc/issues/4172
But none about printing.
Last updated: Oct 15 2026 at 17:56 UTC