Add text to result?

Add text to result? - Is it possible to ad text to result - fx currency (text only) - Сообщения

#1 Опубликовано: 26.12.2013 02:18:42
ESKDK

ESKDK

0 сообщений из 7 понравились пользователям.

Группа: 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 Опубликовано: 26.12.2013 05:39:20
Martin Kraska

Martin Kraska

1222 сообщений из 2150 понравились пользователям.

Группа: 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
Martin Kraska Pre-configured portable distribution of SMath Studio: https://en.smath.info/wiki/SMath%20with%20Plugins.ashx
#3 Опубликовано: 27.12.2013 05:56:57
ESKDK

ESKDK

0 сообщений из 7 понравились пользователям.

Группа: 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 Опубликовано: 27.12.2013 09:48:47
Martin Kraska

Martin Kraska

1222 сообщений из 2150 понравились пользователям.

Группа: Moderator

Did you try the CurrencyUnits plugin? Besides the definition of currency units, it has real time exchange rates.
SetCurrencyUnits.sm (18 КиБ) скачан 40 раз(а).
Martin Kraska Pre-configured portable distribution of SMath Studio: https://en.smath.info/wiki/SMath%20with%20Plugins.ashx
1 пользователям понравился этот пост
Davide Carpi 27.12.2013 20:25:00
#5 Опубликовано: 28.12.2013 03:26:40
ESKDK

ESKDK

0 сообщений из 7 понравились пользователям.

Группа: 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

  • Новые сообщения Новые сообщения
  • Нет новых сообщений Нет новых сообщений