IEEE-754 Float to int

Anupam Kapoor anupam.kapoor at
Tue Nov 22 11:19:22 EST 2016

On Tue, Nov 22, 2016 at 9:35 PM, Lucas Tanure <tanure at> wrote:

> So, value has a 32bit float now, and I would like to print just the
> integer part, like :
> Read 26.92387 --> Print 26.

​how about just typecasting to int ? so :

    int x = (int)(some-float-value)

that should be it right ?​

kind regards

In the beginning was the lambda, and the lambda was with Emacs, and Emacs
was the lambda.
-------------- next part --------------
An HTML attachment was scrubbed...

More information about the Kernelnewbies mailing list