<div dir="ltr">Gents,<div><br></div><div>both solutions are the same and the same perfectly works.</div><div>Thanks, no more newbie questions, just expressions.</div><div>Best,</div><div>Popesz</div></div><br><div class="gmail_quote"><div dir="ltr">On Tue, Jul 31, 2018 at 9:25 PM Christof Ressi <<a href="mailto:christof.ressi@gmx.at">christof.ressi@gmx.at</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">if you really want to round the number itself to 2 digits after the comma you can do:<br>
 <br>
*input* -> [* 100] -> [expr round($f1)] -> [* 0.01] -> *output*<br>
 <br>
if you just want to limit the precision for printing purposes, you can do:<br>
 <br>
*input* -> [makefilename %.2f] -> *output*<br>
 <br>
(see <a href="http://www.cplusplus.com/reference/cstdio/printf/" rel="noreferrer" target="_blank">http://www.cplusplus.com/reference/cstdio/printf/</a>)<br>
<br>
Christof<br>
 <br>
<br>
Gesendet: Dienstag, 31. Juli 2018 um 20:35 Uhr<br>
Von: "Csaba Láng" <<a href="mailto:langcsaba@gmail.com" target="_blank">langcsaba@gmail.com</a>><br>
An: Pd-List <<a href="mailto:pd-list@lists.iem.at" target="_blank">pd-list@lists.iem.at</a>><br>
Betreff: [PD] decimal fraction limit<br>
<br>
Dear list,<br>
how can one limit the amount of digits of the decimal fraction in the number object?<br>
To have instead of 33.3333 only 2 digits after the colon 33.33.<br>
 <br>
Sorry for the newbie Q,<br>
 <br>
Popesz_______________________________________________ <a href="mailto:Pd-list@lists.iem.at" target="_blank">Pd-list@lists.iem.at</a> mailing list UNSUBSCRIBE and account-management -> <a href="https://lists.puredata.info/listinfo/pd-list" rel="noreferrer" target="_blank">https://lists.puredata.info/listinfo/pd-list</a><br>
</blockquote></div>