Add text to result?

Add text to result? - Is it possible to ad text to result - fx currency (text only) - Messaggi

#1 Pubblicato: 26/12/2013 02:18:42
ESKDK

ESKDK

0 apprezzamenti in 7 post.

Gruppo: User

Hi!

I would like the possibility to add text to the calculations - fx when calculating with money.

Is this possible (currency is not in the unit-section - I know there are workarounds, but....).

Actually, I just want to add text, not "active" units!

Fx

10 Euro+ 20 Euro = 30 Euro

Can this be done?

Thanx for your time

#2 Pubblicato: 26/12/2013 05:39:20
Martin Kraska

Martin Kraska

1.361 apprezzamenti in 2.275 post.

Gruppo: Moderator

Do not let the developer know, that you try to avoid one of the most exciting features of SMath Studio ;-)

In fact, it is very easy. Just use undefined variable names and switch to symbolic optimization in the context menu or use the symbolic evaluation button in the Arithmetics panel (it is marked -> but produces a = sign). The drawback of symbolic optimization is that you cannot display decimal fractions, even if they would represent the result without error.

This drawback is avoided if using units. You are always free to use custom units, there is no need to pre-declare them, unless you want conversions to happen automatically.

Just prepend a single quote ' to any name in order to make it a unit (fit for use in numerical evaluation).


Taler.PNG
Technische Mechanik mit SMath Studio: https://link.springer.com/book/10.1007/978-3-658-50592-9
#3 Pubblicato: 27/12/2013 05:56:57
ESKDK

ESKDK

0 apprezzamenti in 7 post.

Gruppo: User

Hi!

Thanx so much - a simple and effective solution! I played around a lot yet I did'nt find it

I'll remember the small ' !

And I agree totally: It would be great to have currency incorporated into the standard units!



Merry Xmas - and soon: Happy New Year!

Regards

/Erik
#4 Pubblicato: 27/12/2013 09:48:47
Martin Kraska

Martin Kraska

1.361 apprezzamenti in 2.275 post.

Gruppo: Moderator

Did you try the CurrencyUnits plugin? Besides the definition of currency units, it has real time exchange rates.
SetCurrencyUnits.sm (18,6 KiB) scaricato 1419 volta(e).
Technische Mechanik mit SMath Studio: https://link.springer.com/book/10.1007/978-3-658-50592-9
1 utenti hanno apprezzato questo post
Davide Carpi 27/12/2013 20:25:00
#5 Pubblicato: 28/12/2013 03:26:40
ESKDK

ESKDK

0 apprezzamenti in 7 post.

Gruppo: User

Wrote

Did you try the CurrencyUnits plugin? Besides the definition of currency units, it has real time exchange rates.



Yes, I am trying it out as we speak!

Regards

  • Nuovi post
  • Nessun nuovo post