IEEE-754 Float to int

Anupam Kapoor anupam.kapoor at
Wed Nov 23 09:04:09 EST 2016

On Wed, Nov 23, 2016 at 6:00 PM, Lucas Tanure <tanure at> wrote:

> The best way to do it seems to be to write conversion function.
> Receive the float in a u32, parse it's bits and return a s32. Can be
> done without the use of floats.

​but this conversion-function might not be straight-forward :) ​it _may_ be
possibly simplified depending on your precision requirements etc. etc.

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