Welcome Guest! To enable all features please Login. New Registrations are disabled.

Notification

Icon
Error

Login


Options
Go to last post Go to first unread
Offline mkraska  
#1 Posted : 03 October 2012 19:48:43(UTC)
mkraska


Rank: Advanced Member

Groups: Registered
Joined: 15/04/2012(UTC)
Posts: 1,980
Germany

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):
str2num.sm (3kb) downloaded 25 time(s).
mkraska attached the following image(s):
2012 10 03 mat2sys.PNG
2012 10 03 mat2sys2.PNG
Martin Kraska

Pre-configured portable distribution of SMath Studio: https://smath.com/wiki/SMath_with_Plugins.ashx

Wanna join the discussion?! Login to your SMath Studio Forum forum account. New Registrations are disabled.

Offline Davide Carpi  
#2 Posted : 12 October 2012 10:43:26(UTC)
Davide Carpi


Rank: Advanced Member

Groups: Registered, Advanced Member
Joined: 13/01/2012(UTC)
Posts: 2,639
Man
Italy
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
File Attachment(s):
semicolon_bug.sm (2kb) downloaded 39 time(s).
If you like my plugins consider to support SMath Studio buying a plan; to offer me a coffee: paypal.me/dcprojects
Offline Davide Carpi  
#3 Posted : 27 May 2013 13:26:06(UTC)
Davide Carpi


Rank: Advanced Member

Groups: Registered, Advanced Member
Joined: 13/01/2012(UTC)
Posts: 2,639
Man
Italy
Location: Italy

Was thanked: 1323 time(s) in 873 post(s)
Originally Posted by: w3b5urf3r_reloaded Go to Quoted Post
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
thanks 1 user thanked Davide Carpi for this useful post.
on 28/05/2013(UTC)
Offline Andrey Ivashov  
#4 Posted : 29 May 2013 22:11:38(UTC)
Andrey Ivashov


Rank: Administration

Groups: Developers, Registered, Knovel Developers, Administrators, Advanced Member
Joined: 11/07/2008(UTC)
Posts: 1,616
Man
Russian Federation

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.
thanks 1 user thanked Andrey Ivashov for this useful post.
on 29/05/2013(UTC)
Offline mkraska  
#5 Posted : 29 May 2013 23:37:49(UTC)
mkraska


Rank: Advanced Member

Groups: Registered
Joined: 15/04/2012(UTC)
Posts: 1,980
Germany

Was thanked: 1120 time(s) in 718 post(s)
Originally Posted by: smath Go to Quoted Post

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):
Prozent.png
prozent1.png
Martin Kraska

Pre-configured portable distribution of SMath Studio: https://smath.com/wiki/SMath_with_Plugins.ashx
thanks 1 user thanked mkraska for this useful post.
on 31/05/2013(UTC)
Offline Davide Carpi  
#6 Posted : 29 May 2013 23:58:48(UTC)
Davide Carpi


Rank: Advanced Member

Groups: Registered, Advanced Member
Joined: 13/01/2012(UTC)
Posts: 2,639
Man
Italy
Location: Italy

Was thanked: 1323 time(s) in 873 post(s)
Originally Posted by: smath Go to Quoted Post
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.... Umnik
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 Good

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
thanks 1 user thanked Davide Carpi for this useful post.
on 31/05/2013(UTC)
Users browsing this topic
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.