Find next bit in fraction
fractional *= 2 ; let fract_bit = parseInt ( fractional , 10 ) ; if ( fract_bit == 1 ) { fractional -= fract_bit ; binary += String . fromCharCode ( 1 + ' ' . charCodeAt ( ) ) ; } else { binary += String . fromCharCode ( 0 + ' ' . charCodeAt ( ) ) ; } } return binary ; }