SemanticMediaWiki / SemanticScribunto

Provides service functions to support the Scribunto extension
Other
23 stars 14 forks source link

Decimal number formats should be LUA compatible #92

Open octfx opened 1 year ago

octfx commented 1 year ago

Setup and configuration

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.