09-20-2006 01:28 PM
09-20-2006 02:09 PM
09-21-2006 01:57 AM
09-21-2006 04:03 AM
09-21-2006 04:12 AM
10-07-2007 11:48 PM
ello there..
i have some problems while using the mantissa and exponent. i want to convert hexadecimal value which is FF80000 to floating point. suppose i will get -0.1 but what happen is i will get 340282366920938463000000000000000000000. i have read some information on IEEE 754 format floating point number. i am confuse by the sentence of E is the two's complement exponent with an offset of 127 i.e. an exponent of zero is represented by 127, an exponent of 1 by 128 etc.
10-08-2007 02:57 AM
10-09-2007 10:01 PM
02-28-2008
03:57 AM
- last edited on
07-12-2025
10:19 PM
by
Content Cleaner
I received this question from Judy by Email, but because of probably public interest I post this here again:
Hi David,
I couldn't read the vi because i don't have vi editor.
Is it possible that you send it to me in a txt file for the solution you posted up there.
Is it written in C language?
This is the solution you put there:
http://forums.ni.com/ni/board/message?board.id=170&message.id=206482
Thank you very much for your help.
Judy
Hi Judy,
there are some things to explain. A file with the extension .vi is a so called „virtual instrument“, which unifies the User interface and the program logic in one file. There are many more properties a VI has. To edit a VI, you need LabView. You can download a free (limited) version of LabView here.
My little VI is shown in the picture below, the upper part shows the block diagram (program logic), the lower part is the front panel (user interface).

The code can be translated into some text based pseudo- code as follows:
//############### PSEUDO CODE ##########################
Var
Float, LogX, Exponent, 10^x, Mantissa : Double;
Begin
LogX := Logarithm_Base_10 (Float);
Exponent := RoundToMinusInfinity (LogX);
10^x := Power_of_10 (-1*Exponent);
Mantissa := Float * 10^x;
End.
//############### PSEUDO CODE ##########################
Perhaps you can use this to solve your problem.
Greets, Dave
Message Edited by daveTW on 02-28-2008 11:02 AM