It is currently 27 Jun 2017 17:17

All times are UTC + 1 hour




Post new topic Reply to topic  [ 1 post ] 
Author Message
PostPosted: 18 Jun 2017 23:32 
Offline

Joined: 12 Jan 2013 04:17
Posts: 41
Hello,

I'm looking to convert a 4 byte hex string in the IEEE 754 format to its floating point decimal value in MikroBasic.

Does anyone have a library function already made for this?

For example; 0x3E200000 would convert to 0.15625

I believe that MikroC has this functionality built in, but I can't find it in MikroBasic.

If no one has it, I'll have to put my thinking cap on.

Here are some pages that explain the complexities:

https://www.h-schmidt.net/FloatConverter/IEEE754.html
http://teaching.idallen.com/cst8281/10w ... rsions.txt
https://techdocs.altium.com/display/FPG ... Aodg80EaQ#

Regards to all,

Stuart


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 1 post ] 

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to: