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

To retain given number of decimal places, you would first multiply by a 
power of 10 (to shift the decimal place to the right), then apply round[] 
(or any of the other similar filters), and then divide again by the same 
power of 10 to shift the decimal place back to its original position in the 
number.  Thus:

<$vars v3={{{ 
[[$Gesamtpreis$]divide[$getankt$]multiply[1000]round[]divide[1000]] }}}>

will round the number to 3 decimal places.

enjoy,
-e

-- 
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 tiddlywiki+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/1a62f98e-e284-4983-baaa-ea366bc4853e%40googlegroups.com.

Reply via email to