How to convet to 16 bit binary

Posted by ayush on Stack Overflow See other posts from Stack Overflow or by ayush
Published on 2010-04-12T09:37:57Z Indexed on 2010/04/12 9:43 UTC
Read the original article Hit count: 408

Filed under:

Hi i want to convert a long integer to binary but the problem is i want a fixed 16 bit binary result after conversion like if i convert 2 to 16 bit binary it should give me 0000000000000010 as ans can anyone help me ?

© Stack Overflow or respective owner

Related posts about java