Click here to Skip to main content
Click here to Skip to main content
Add your own
alternative version

Convert double value in Binary

I think the problem is down to the numeric types you're using. Amend your left shift to:((long)1 << bit)This is discussed in greater detail here:http://social.msdn.microsoft.com/Forums/en/csharpgeneral/thread/1e9d6e3b-bbad-45df-9391-7403becd9641[^]Update: My bad, looks like...

Revisions


  

Compare Revision Minor Date Status Editor
publicly available No 7-Nov-12 9:41 Available jim lahey
Updates in content. 266 changes had been made.
1 No 7-Nov-12 9:30 Available jim lahey

License

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

About the Author

jim lahey
Software Developer (Senior)
United Kingdom United Kingdom
First batch file in 1987
 
Messed around with the Bullfrog C++ Libraries for Syndicate in 1994
 
Web Developer since 2000
 
.net Developer since 2001
 
MCTS: Microsoft® .NET Framework 2.0 - Web-based Client Development
 
MCTS: Web Applications Development with Microsoft .NET Framework 4

| Advertise | Privacy | Mobile
Web01 | 2.8.140709.1 | Last Updated 7 Nov 2012
Article Copyright 2012 by jim lahey
Everything else Copyright © CodeProject, 1999-2014
Terms of Service
Layout: fixed | fluid