Add text to result?

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

#1 Publicado: 26/12/2013 2:18:42
ESKDK

ESKDK

0 me gusta en 7 mensajes.

Grupo: 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 Publicado: 26/12/2013 5:39:20
Martin Kraska

Martin Kraska

1.361 me gusta en 2.275 mensajes.

Grupo: 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 Publicado: 27/12/2013 5:56:57
ESKDK

ESKDK

0 me gusta en 7 mensajes.

Grupo: 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 Publicado: 27/12/2013 9:48:47
Martin Kraska

Martin Kraska

1.361 me gusta en 2.275 mensajes.

Grupo: Moderator

Did you try the CurrencyUnits plugin? Besides the definition of currency units, it has real time exchange rates.
SetCurrencyUnits.sm (18,6 KiB) descargado 1414 vez(es).
Technische Mechanik mit SMath Studio: https://link.springer.com/book/10.1007/978-3-658-50592-9
A 1 usuarios les gustó este mensaje
Davide Carpi 27/12/2013 20:25:00
#5 Publicado: 28/12/2013 3:26:40
ESKDK

ESKDK

0 me gusta en 7 mensajes.

Grupo: 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

  • Nuevos mensajes
  • Sin mensajes nuevos