IEEE-754 Float to int
Anupam Kapoor
anupam.kapoor at gmail.com
Wed Nov 23 09:04:09 EST 2016
On Wed, Nov 23, 2016 at 6:00 PM, Lucas Tanure <tanure at linux.com> 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
anupam
In the beginning was the lambda, and the lambda was with Emacs, and Emacs
was the lambda.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20161123/72d2a3d9/attachment.html
More information about the Kernelnewbies
mailing list