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.
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 tostring
.Ideally the SSC should query SMW with
en
as its content language.