Convert NUMBERS to BINARY (and back) in JavaScript - Super Easy Way!

preview_player
Показать описание
In this video, I just show you guys a super easy way to convert numbers/decimals to binary and back in JavaScript.

This video does not have source code in the description because of how short the code is.
Рекомендации по теме
Комментарии
Автор

Cool video! Make sure to use bigint after a certain point where numbers start to exceed 9e15 as javascript will lose precision on the last digits and the number you will see won't actually be the real number in binary

aurelienc
Автор

what does the (2) signify here? im still slightly confused on that.

louismartin