1 страниц (6 вхождений)
str2num problems with regional settings - Сообщения
#1 Опубликовано: 03.10.2012 12:48:43
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 КиБ) скачан 43 раз(а).
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 КиБ) скачан 43 раз(а).
Martin Kraska
Pre-configured portable distribution of SMath Studio: https://en.smath.info/wiki/SMath%20with%20Plugins.ashx
#2 Опубликовано: 12.10.2012 03:43:26
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 КиБ) скачан 56 раз(а).
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 КиБ) скачан 56 раз(а).
If you like my plugins please consider to support the program buying a license; for personal contributions to me: paypal.me/dcprojects
#3 Опубликовано: 27.05.2013 06:26:06
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 27.05.2013 17:01:00
#4 Опубликовано: 29.05.2013 15:11:38
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 29.05.2013 15:53:00
#5 Опубликовано: 29.05.2013 16:37:49
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.
Martin Kraska
Pre-configured portable distribution of SMath Studio: https://en.smath.info/wiki/SMath%20with%20Plugins.ashx
1 пользователям понравился этот пост
Andrey Ivashov 31.05.2013 00:48:00
#6 Опубликовано: 29.05.2013 16:58:48
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 31.05.2013 00:48:00
1 страниц (6 вхождений)
-
Новые сообщения
-
Нет новых сообщений