Add text to result?

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

#1 已发布: 2013/12/26 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 已发布: 2013/12/26 05:39:20
Martin Kraska

Martin Kraska

1,362个赞,共2,276个帖子。

组: 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 已发布: 2013/12/27 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 已发布: 2013/12/27 09:48:47
Martin Kraska

Martin Kraska

1,362个赞,共2,276个帖子。

组: Moderator

Did you try the CurrencyUnits plugin? Besides the definition of currency units, it has real time exchange rates.
SetCurrencyUnits.sm (18.6 KiB)已下载 1436 次。
Technische Mechanik mit SMath Studio: https://link.springer.com/book/10.1007/978-3-658-50592-9
1位用户喜欢此帖子
Davide Carpi 2013/12/27 20:25:00
#5 已发布: 2013/12/28 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

  • 有新帖
  • 无新帖