Skip to content
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

A way of converting number literals to decimals #256

Open
jLn0n opened this issue Jan 29, 2025 · 1 comment · May be fixed by #257
Open

A way of converting number literals to decimals #256

jLn0n opened this issue Jan 29, 2025 · 1 comment · May be fixed by #257
Labels

Comments

@jLn0n
Copy link

jLn0n commented Jan 29, 2025

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

@jiwonz jiwonz linked a pull request Jan 29, 2025 that will close this issue
@jeparlefrancais
Copy link
Contributor

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants