<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Nov 22, 2016 at 4:19 PM, Anupam Kapoor <span dir="ltr"><<a href="mailto:anupam.kapoor@gmail.com" target="_blank">anupam.kapoor@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div class="gmail_extra"><span class=""><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></span><div style="font-family:monospace,monospace">how about just typecasting to int ? so :</div><div style="font-family:monospace,monospace"><br></div><div style="font-family:monospace,monospace"> int x = (int)(some-float-value)</div></div></div></blockquote><div>But this "some-float-value" must be declared as float ? Can I do that ? </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div class="gmail_extra"><div style="font-family:monospace,monospace"><br></div><div style="font-family:monospace,monospace">that should be it right ?</div><br><br><div style="font-family:monospace,monospace">--</div><div style="font-family:monospace,monospace">kind regards</div><div style="font-family:monospace,monospace">anupam</div><br clear="all"><div><br></div><div class="m_4690632474113850635gmail_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>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr">Lucas Tanure<div>Embedded Developer</div><div>+55 19 988176559</div></div></div>
</div></div>