Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: VB.NET
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 9-Mar-12 18:36pm
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

Use the Format()[^] method of System.String.
  Permalink  
Comments
SAKryukov at 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
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 3

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
  Permalink  
v2

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

  Print Answers RSS
0 OriginalGriff 6,656
1 Sergey Alexandrovich Kryukov 6,400
2 CPallini 5,240
3 George Jonsson 3,584
4 Gihan Liyanage 2,625


Advertise | Privacy | Mobile
Web02 | 2.8.140921.1 | Last Updated 11 Mar 2012
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100