How to convert a 32-bit floating point to 16-bit

434475 pts.
Tags:
Floating point numbers
Networking
I'm looking to cross-platform library that can convert a 32-bit floating point numbers to 16-bit. I really need to decrease the size of the 32-bit floats so I can send him over a network. I'm using C++. I understand how much precision I will be losing but I need to do it. Any help would be greatly appreciated.

Answer Wiki

Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

Discuss This Question:  

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

Thanks! We'll email you when relevant content is added and updated.

Following

Share this item with your network: