Click here to Skip to main content
13,350,822 members (65,177 online)

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

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