darklua
darklua copied to clipboard
A way of converting number literals to decimals
so uh basically, i want to have 0b000010 to be a decimal (result of that is 2) because lua compatibility
this rule will be called remove_number_literals since it literally removes (preferably converts) number literals to its decimal counterpart
Hi 👋
I think it'd be preferable to call the rule something like convert_luau_numbers and it should do 2 things:
- convert binary numbers into decimal numbers
- remove
_from decimal or hexadecimal numbers