Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Convert a large 2^63 decimal to binary [closed]

I need to convert a large decimal to binary how would I go about doing this? Decimal in question is this 3324679375210329505

like image 294
mipsProgStudent Avatar asked Feb 06 '26 08:02

mipsProgStudent


1 Answers

How about:

String binary = Long.toString(3324679375210329505L, 2);
like image 73
Ted Hopp Avatar answered Feb 07 '26 20:02

Ted Hopp



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!