Click here to Skip to main content
15,891,529 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Hai All,
I need to convert IEEE 754 floating point to HEX in VB.NET. Please help me or suggest me how to get it ...

Thanks in ADV
Posted

Use the Format()[^] method of System.String.
 
Share this answer
 
Comments
Sergey Alexandrovich Kryukov 11-Mar-12 0:31am    
My 5, but it looks like OP does not understand what is hex, etc. (If I'm wrong, I apologize in advance, but then the terminology is not quite correct.) I try to explain it in my answer.
--SA
The question makes no sense, as a numeric type is never decimal, hex, octal or something like that. Hex is related only to a strings representing some numeric data. You need just to format it, as Richard advised. The notion of "Convert" makes no sense; there are no different forms of floating points numbers. Strings are not numbers.

—SA
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900