Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Converting Double to binary

Status
Not open for further replies.

richrock316

Programmer
Jul 30, 2003
57
0
0
US
I may be just overlooking it but, how do you convert a value that is of type double to a binary type without stripping it?

For example how can I make the value 3.45 as a binary value?

Thanks in advance
 
Converting integers is fairly simple but, for floating point numbers like double, you need to settle on a convention to use. VB uses the IEEE 754 convention and there's a Wikipedia article on it here.

As you will note, it's not a trivial exercise.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top