Click here to Skip to main content
12,826,142 members (25,173 online)
Rate this:
Please Sign up or sign in to vote.
See more: VB 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 19:36pm
Rate this: bad
Please Sign up or sign in to vote.

Solution 1

Use the Format()[^] method of System.String.
SAKryukov 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.
Rate this: bad
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.


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

    Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy | Mobile
Web01 | 2.8.170326.1 | Last Updated 11 Mar 2012
Copyright © CodeProject, 1999-2017
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