Snippet Operations with units Fail

Snippet Operations with units Fail - Fails on some occasions to detect the units - Poruke

#1 Objavljeno: 16. 5. 2022. 19:05:41
CBG

CBG

78 svidjanja u 312 postova.

Grupa: User

Hello


The unit operation snippet fails to detect units.

Snippet_Units_Fail.png

Snippet_Units_Fail.sm (33,04 KiB) preuzeto 1700 put(ova).

Best Regards

Carlos
#2 Objavljeno: 17. 5. 2022. 09:02:34
Davide Carpi

Davide Carpi

1.444 svidjanja u 2.936 postova.

Grupa: Moderator

Try this

Snippet_Units_Fail.sm (32,38 KiB) preuzeto 1617 put(ova).
If you like my plugins please consider to support the program buying a license; for personal contributions to me: paypal.me/dcprojects
#3 Objavljeno: 17. 5. 2022. 09:12:04
Jean Giraud

Jean Giraud

983 svidjanja u 6.866 postova.

Grupa: User

Wrote

The unit operation snippet fails to detect units.


Hola Carlos ... Jean...OK SS 6179

UoM.PNG


#4 Objavljeno: 17. 5. 2022. 16:51:34
CBG

CBG

78 svidjanja u 312 postova.

Grupa: User

Hello David

Citat

Try this




Thank you very much for your answer, but the snippet fails, since instead
of finding the units, it only obtains the value of 1

Snippet_Units_Fail_2.png

Hola Jean

Saludos

Best Regards

Carlos
#5 Objavljeno: 18. 5. 2022. 04:44:35
Davide Carpi

Davide Carpi

1.444 svidjanja u 2.936 postova.

Grupa: Moderator

Wrote

Hello David


Thank you very much for your answer, but the snippet fails, since instead
of finding the units, it only obtains the value of 1



My bad, IDK why but yesterday seemed to work to me, but in fact it doesn't. I'll give another look at the snippet ASAP.
If you like my plugins please consider to support the program buying a license; for personal contributions to me: paypal.me/dcprojects
#6 Objavljeno: 18. 5. 2022. 14:00:44
Davide Carpi

Davide Carpi

1.444 svidjanja u 2.936 postova.

Grupa: Moderator

I see the issue. The function look for a numerator/denominator pattern in the num2str() text, but doesn't handle cases in which multiple divisions are involved.
If you like my plugins please consider to support the program buying a license; for personal contributions to me: paypal.me/dcprojects
#7 Objavljeno: 18. 5. 2022. 22:47:59
CBG

CBG

78 svidjanja u 312 postova.

Grupa: User

Hello David

Thank you very much for your attention, I hope the Snippet has a fix-

On the other hand, I ran the snippet in version 6179,
and it works perfectly. How is that possible?

Snippet_Units_6179.png

Best Regards

Carlos
#8 Objavljeno: 19. 5. 2022. 08:28:50
Davide Carpi

Davide Carpi

1.444 svidjanja u 2.936 postova.

Grupa: Moderator

I'm not sure, however if you need a urgent fix here you have an easy way to make it working the same way.

2022-05-19 13_24_54-SMath Studio 0.98.6179 - [Documento1_].png
If you like my plugins please consider to support the program buying a license; for personal contributions to me: paypal.me/dcprojects
  • Novi postovi
  • Nema novih postova