1页(6条)
str2num problems with regional settings - 消息
Hi
str2num has problems with nonstandard settings of decimal delimiter (komma) and function argument delimiter (semicolon). The error message indicates that the function tries to convert the internal argument separator (komma) to periods.
Best regards, Martin Kraska
Edit: Seems that the bug has been fixed:
[MATH lang=ENG]str2num(num2str(sys(1.2,2,2,1)))=sys(1.2,2,2,1)[/MATH]
str2num.sm (2.18 KiB)已下载 1456 次。
str2num has problems with nonstandard settings of decimal delimiter (komma) and function argument delimiter (semicolon). The error message indicates that the function tries to convert the internal argument separator (komma) to periods.
Best regards, Martin Kraska
Edit: Seems that the bug has been fixed:
[MATH lang=ENG]str2num(num2str(sys(1.2,2,2,1)))=sys(1.2,2,2,1)[/MATH]
str2num.sm (2.18 KiB)已下载 1456 次。
Technische Mechanik mit SMath Studio: https://link.springer.com/book/10.1007/978-3-658-50592-9
Another issue with regional settings.
When a variable name or a function name created using default settings (decimals->period,separator->comma) contains a semicolon (maybe in the subscript or not), opening the file with different settings (decimals->comma,separator->semicolon) cause an "empty stack" error (and the file can't be opened).
regards,
w3b5urf3r
semicolon_bug.sm (1.24 KiB)已下载 1426 次。
When a variable name or a function name created using default settings (decimals->period,separator->comma) contains a semicolon (maybe in the subscript or not), opening the file with different settings (decimals->comma,separator->semicolon) cause an "empty stack" error (and the file can't be opened).
regards,
w3b5urf3r
semicolon_bug.sm (1.24 KiB)已下载 1426 次。
If you like my plugins please consider to support the program buying a license; for personal contributions to me: paypal.me/dcprojects
WroteAnother issue with regional settings.
When a variable name or a function name created using default settings (decimals->period,separator->comma) contains a semicolon (maybe in the subscript or not), opening the file with different settings (decimals->comma,separator->semicolon) cause an "empty stack" error (and the file can't be opened).
regards,
w3b5urf3r
No chances to fix this? It's critical when sharing worksheets based on norms like Eurocodes or similars...
best regards,
w3b5urf3r
If you like my plugins please consider to support the program buying a license; for personal contributions to me: paypal.me/dcprojects
1位用户喜欢此帖子
ioan92 2013/5/27 17:01:00
I see the only way to fix it is to forbid semicolon symbol in variables/functions names. I'll do it.
I think instead I need to implement some common way to allow any characters to be used in names. But a bit later...
Best regards, Andrey Ivashov.
I think instead I need to implement some common way to allow any characters to be used in names. But a bit later...
Best regards, Andrey Ivashov.
1位用户喜欢此帖子
ioan92 2013/5/29 15:53:00
Wrote
I think instead I need to implement some common way to allow any characters to be used in names.
Best regards, Andrey Ivashov.
One of the most missed characters is the % sign (as a unit name, '%:0,01), in order to avoid ugly constructs like in the attachment.

Technische Mechanik mit SMath Studio: https://link.springer.com/book/10.1007/978-3-658-50592-9
1位用户喜欢此帖子
Andrey Ivashov 2013/5/31 00:48:00
WroteI see the only way to fix it is to forbid semicolon symbol in variables/functions names. I'll do it.
I think instead I need to implement some common way to allow any characters to be used in names. But a bit later...
Best regards, Andrey Ivashov.
mhhh... ok... I know, dot, comma and semicolon are special and sensible characters....
There are some unicode characters very similar ‚ ; I don't know if could be useful for the development of these exceptions (as dirty idea when an user is typing the name of the variable/function, Smath can convert "on the fly" the keyboard comma and semicolon input into this characters...)
thank you for any your effort
w3b5urf3r
If you like my plugins please consider to support the program buying a license; for personal contributions to me: paypal.me/dcprojects
1位用户喜欢此帖子
Andrey Ivashov 2013/5/31 00:48:00
1页(6条)
- 有新帖
- 无新帖