[tw5] Re: calulate with math operators and Variables

2020-02-18 Thread Gerald Weis
You are top thanks Am Montag, 17. Februar 2020 20:23:47 UTC+1 schrieb Gerald Weis: > > I have written an Maro with the follow defininitions > > \define Benzkauf2(Datum kmalt kmneu getankt Gesamtpreis) > > $Datum$ > $kmalt$ > $kmneu$ > $getankt$ > $Gesamtpreis$ > [[$kmneu$

[tw5] Re: calulate with math operators and Variables

2020-02-18 Thread Eric Shulman
On Tuesday, February 18, 2020 at 1:42:04 AM UTC-8, Gerald Weis wrote: > > now i have trying to round it on 2 or 3 Digits behind the decimnalpoint. > i dont find it. > TW Math filters include round[], trunc[], ceil[], and floor[]... any of which can be used to remove the decimal part of a number

[tw5] Re: calulate with math operators and Variables

2020-02-18 Thread Gerald Weis
Hallo Eric, i have tested it. Its works fine. now i have trying to round it on 2 or 3 Digits behind the decimnalpoint. i dont find it. thankyou Am Dienstag, 18. Februar 2020 09:26:44 UTC+1 schrieb Eric Shulman: > > On Monday, February 17, 2020 at 10:51:15 PM UTC-8, Gerald Weis wrote: >> >> [[$k

[tw5] Re: calulate with math operators and Variables

2020-02-18 Thread Eric Shulman
On Monday, February 17, 2020 at 10:51:15 PM UTC-8, Gerald Weis wrote: > > [[$kmneu$]subtract[$kmalt$]] > [[[$getankt$]multiply[100]]divide[[$kmneu$ $kmalt$ substract[ > [[$Gesamtpreis$]divide[$getankt$]] > You are using the wrong kind of outer brackets. To *evaluate* a filter, use tripled cu

[tw5] Re: calulate with math operators and Variables

2020-02-17 Thread Gerald Weis
Am Montag, 17. Februar 2020 21:46:43 UTC+1 schrieb Mat: > > Note also that thing is calculated just because it's within brackets like > that. If you want the expression evaluated it must also be enclosed in > triple braces like so: > > {{{ [...] }}} > > <:-) > Hello Mat, i was trying your sol

[tw5] Re: calulate with math operators and Variables

2020-02-17 Thread Mat
Note also that thing is calculated just because it's within brackets like that. If you want the expression evaluated it must also be enclosed in triple braces like so: {{{ [...] }}} <:-) -- You received this message because you are subscribed to the Google Groups "TiddlyWiki" group. To unsub

[tw5] Re: calulate with math operators and Variables

2020-02-17 Thread Mat
Looking at the documentation example for subtract [[$kmneu$ $kmalt$ substract[]] should probably be [[$kmneu$]subtract[$kmalt$]] And you type [[$*Gesamtpreis*$]divide[$getankt$]] but you state 3. *Preisgesamt* / getankt