Click here to Skip to main content
11,710,423 members (80,416 online)
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 Sergey Alexandrovich Kryukov 549
1 OriginalGriff 270
2 Peter Leow 134
3 Abhinav S 130
4 Richard MacCutchan 80
0 Abhinav S 60
1 Member 4653839 40
2 barneyman 35
3 Sergey Alexandrovich Kryukov 35
4 Member 11793820 35


Advertise | Privacy | Mobile
Web04 | 2.8.150819.1 | Last Updated 11 Mar 2012
Copyright © CodeProject, 1999-2015
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