Notice that in your calculations for rounding, you have the decimal 
specified at two places:

round(numbers....numbers,*2*)

If you use that, then round(amount/4 * 1.5,2) = 1.5 (where amount == 4)


For your sample problem with the new math tools, you could say:

<$text text={{{ [{!!amount}divide[0.5]multiply[1]] }}} />

The <$text.../> widget makes it come out as text. Yes, it would be useful 
if there was a filter operator that would make the result not be a link.

Hmm. You could put a style on the page so that the links no longer looked 
like links.

HTH!

On Thursday, October 10, 2019 at 11:37:27 AM UTC-7, Surya wrote:
>
> Hello,
> here is one example of 21 recipes in my other wiki with version 5.1.14. 
> They are all working correctly and all these 21 recipes I have a lot of 
> numbers like 0.2, 1.7, and so on. In all of them the amount is correct. I 
> am using these recipes regularly. I would notice it really fast, if there 
> would be a mistake.
>
> [image: Screenshot (20191010-201216).jpg]
>
> I tried now in my new wiki with the 
> https://tiddlywiki.com/#Mathematics%20Operators.
> I wrote {{{ [[0.5]multiply[1]] }}} > that works correctly (result 0.5).
> Also {{{ [[0.5]divide[0.5]multiply[1]] }}} works correctly (result 1).
> But I have two problems with it:
> 1. I cannot find out, how to include my field "amount". So that, when the 
> amount is 0.5 {{{ [[amount]divide[0.5]multiply[1]] }}} gives also 1 as the 
> result.
> 2. The results are displayed as links- I do not want them as links, but 
> just normal displayed.
>
> How to solve that?
> Surya
>
>
>
> On Thursday, October 10, 2019 at 7:38:47 PM UTC+2, Mark S. wrote:
>>
>>
>> Here's a screen shot to show what I mean.
>>
>>
>>
>>
>>
>> On Thursday, October 10, 2019 at 10:32:11 AM UTC-7, Mark S. wrote:
>>>
>>> Actually, when I try your sample calculation on mklauber's site, 
>>>
>>> <$calc>round({{!!amount}}/4 * 1.5)</$calc>
>>>
>>> I also get "2". 
>>>
>>> That site still uses 5.1.9
>>>
>>> So maybe you should double-check that the field "amount" contains the 
>>> value you think it does. I suppose its possible that TW 5.1.14 introduced 
>>> an error
>>> that was corrected later.
>>>
>>> Perhaps export and post the tiddler that is causing the problems, so we 
>>> can review the actual numbers.
>>>
>>> Good luck!
>>>
>>>

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/a7f54a4f-2ebf-4393-bb88-802988ca2be6%40googlegroups.com.

Reply via email to