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 number formats should be LUA compatible #92

Open
octfx opened this issue Jun 18, 2023 · 0 comments
Open

Decimal number formats should be LUA compatible #92

octfx opened this issue Jun 18, 2023 · 0 comments

Comments

@octfx
Copy link
Contributor

octfx commented Jun 18, 2023

Setup and configuration

  • SMW version: 4.1.1
  • SSC version: 2.1
  • MW version: 1.39.3

Issue

Queries using the #-n format result in string type numbers in LUA.

Example:
Value with unit: 1,509 Minuten
Value returned with #-n: 1,509
Expected value: 1.509

While the returned value is "correct" with regards to the content language, trying to use this value directly in LUA results in Arithmetic on String errors, as the , changes the type to string.

Ideally the SSC should query SMW with en as its content language.

octfx added a commit to The-Star-Citizen-Wikis/SharedModules that referenced this issue Apr 2, 2024
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