SMath Studio Forum
»
SMath Studio
»
Bugs & Problems
»
str2num problems with regional settings
Rank: Advanced Member Groups: Registered
Joined: 15/04/2012(UTC) Posts: 1,980 Was thanked: 1120 time(s) in 718 post(s)
|
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: str2num(num2str(sys(1.2,2,2,1)))=sys(1.2,2,2,1)Edited by user 23 March 2014 17:27:33(UTC)
| Reason: Not specified File Attachment(s): mkraska attached the following image(s): |
|
|
|
|
Rank: Advanced Member Groups: Registered, Advanced Member Joined: 13/01/2012(UTC) Posts: 2,639 Location: Italy Was thanked: 1323 time(s) in 873 post(s)
|
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 |
If you like my plugins consider to support SMath Studio buying a plan; to offer me a coffee: paypal.me/dcprojects |
|
|
|
Rank: Advanced Member Groups: Registered, Advanced Member Joined: 13/01/2012(UTC) Posts: 2,639 Location: Italy Was thanked: 1323 time(s) in 873 post(s)
|
Originally Posted by: w3b5urf3r_reloaded 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 No chances to fix this? It's critical when sharing worksheets based on norms like Eurocodes or similars... best regards, w3b5urf3r Edited by user 27 May 2013 13:46:05(UTC)
| Reason: Not specified |
If you like my plugins consider to support SMath Studio buying a plan; to offer me a coffee: paypal.me/dcprojects |
1 user thanked Davide Carpi for this useful post.
|
|
|
Rank: Administration Groups: Developers, Registered, Knovel Developers, Administrators, Advanced Member Joined: 11/07/2008(UTC) Posts: 1,616 Was thanked: 1978 time(s) in 666 post(s)
|
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.
|
1 user thanked Andrey Ivashov for this useful post.
|
|
|
Rank: Advanced Member Groups: Registered
Joined: 15/04/2012(UTC) Posts: 1,980 Was thanked: 1120 time(s) in 718 post(s)
|
Originally Posted by: smath 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. mkraska attached the following image(s): |
|
1 user thanked mkraska for this useful post.
|
|
|
Rank: Advanced Member Groups: Registered, Advanced Member Joined: 13/01/2012(UTC) Posts: 2,639 Location: Italy Was thanked: 1323 time(s) in 873 post(s)
|
Originally Posted by: smath 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. 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 Edited by user 30 May 2013 01:32:56(UTC)
| Reason: Not specified |
If you like my plugins consider to support SMath Studio buying a plan; to offer me a coffee: paypal.me/dcprojects |
1 user thanked Davide Carpi for this useful post.
|
|
|
SMath Studio Forum
»
SMath Studio
»
Bugs & Problems
»
str2num problems with regional settings
Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.