Hello,

I asked my question in a wrong way ("how to round with 2"). In the 
"calc"-Plugin I had to write "round     ,2", if I wanted that 1.666667 is 
shown up as 1.67.
I found out now, how I can do that with the maths operators (fixed 
operator). But unfortunately that gives me also a simple result-number like 
"4" shown up as 4.00.
In the "calc"-Plugin that was better. When the result was "4", it was 
displayed as "4". And when the result was "4.6667", it displayed as "4.67" 
( if I wrote round ,2).
How could I reach that with the maths operator?

Surya



On Thursday, October 10, 2019 at 9:36:59 PM UTC+2, Surya wrote:
>
> That's it :-)))
> *Thank you!*
> No, it is okay like this, I can write it like this and do not need an 
> extra style for it.
> Yes, you're right with the rounding. But in this wiki I think, I do not 
> need to round. But I am not sure yet... How could I round with 2? (I tried, 
> but successless).
>
>
>
> On Thursday, October 10, 2019 at 8:56:33 PM UTC+2, Mark S. wrote:
>>
>>
>> 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/fb03eeff-42d7-4ac8-92e3-016add9ef1b4%40googlegroups.com.

Reply via email to