Click here to Skip to main content
13,734,248 members

Response to: Convert double value in Binary

Revision 1
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[^]
Posted 7-Nov-12 3:30am by jim lahey.
Tags: ,
  Print Answers RSS
Top Experts
Last 24hrsThis month


Advertise | Privacy | Cookies | Terms of Service
Web06-2016 | 2.8.180920.1 | Last Updated 5 Nov 2009
Copyright © CodeProject, 1999-2018
All Rights Reserved.
Layout: fixed | fluid