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

Decimal shorthand read as string #33

Open
LukeTemp opened this issue Oct 9, 2022 · 0 comments
Open

Decimal shorthand read as string #33

LukeTemp opened this issue Oct 9, 2022 · 0 comments

Comments

@LukeTemp
Copy link

LukeTemp commented Oct 9, 2022

If decimals between 0 and 1 are written in shorthand, e.g., .8 rather than 0.8, then they are parsed as strings:

>>> lua.decode("""{ SizeZ = .8, }""")
{'SizeZ': '.8'}
>>> lua.decode("""{ SizeZ = 0.8, }""")
{'SizeZ': 0.8}

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

No branches or pull requests

1 participant