Case insensitive hexadecimal numbers

Post your ideas and suggestions how to improve the game.

Moderator: ickputzdirwech

HeliGungir
Inserter
Inserter
Posts: 45
Joined: Thu Oct 31, 2024 4:43 am
Contact:

Case insensitive hexadecimal numbers

Post by HeliGungir »

TL;DR:
Make uppercase hexadecimal numbers work in logistic groups, combinators, control behaviors, etc.
What?
Typing 0xffff works but typing 0xFFFF does not, and I think it should.
Why?
I tried various prefixes and postfixes to see if hex was supported at all, and none of them worked.
  • 0x prefix
  • x prefix
  • x postfix
  • h prefix
  • h postfix
hex.png
hex.png (621.92 KiB) Viewed 120 times
Since I knew from a FFF blogpost that number fields now support SI postfixes, I made a feature request for hexadecimal support.

But it turns out hexadecimals are supported after all (with a 0x prefix), and the problem is I was using uppercase A-F instead of lowercase a-f. Usually, hex numbers are not case sensitive.
mmmPI
Smart Inserter
Smart Inserter
Posts: 4761
Joined: Mon Jun 20, 2016 6:10 pm
Contact:

Re: Case insensitive hexadecimal numbers

Post by mmmPI »

Make sense to me, there's no risk of confusion with k or m for kilo/thousands ands millions and that would make it 1 less thing to trip onto.
Check out my latest mod ! It's noisy !
Post Reply

Return to “Ideas and Suggestions”