<div dir="ltr"><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Nov 22, 2016 at 9:35 PM, Lucas Tanure <span dir="ltr"><<a href="mailto:tanure@linux.com" target="_blank">tanure@linux.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div>So, value has a 32bit float now, and I would like to print just the integer part, like :</div><div>Read 26.92387 --> Print 26. </div></blockquote></div><br><div class="gmail_default" style="font-family:monospace,monospace">how about just typecasting to int ? so :</div><div class="gmail_default" style="font-family:monospace,monospace"><br></div><div class="gmail_default" style="font-family:monospace,monospace"> int x = (int)(some-float-value)</div><div class="gmail_default" style="font-family:monospace,monospace"><br></div><div class="gmail_default" style="font-family:monospace,monospace">that should be it right ?</div><br><br><div class="gmail_default" style="font-family:monospace,monospace">--</div><div class="gmail_default" style="font-family:monospace,monospace">kind regards</div><div class="gmail_default" style="font-family:monospace,monospace">anupam</div><br clear="all"><div><br></div><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><font face="monospace, monospace">In the beginning was the lambda, and the lambda was with Emacs, and Emacs was the lambda. </font></div></div></div>
</div></div>