MATLAB: How I convert fractional number to binary

fractional numbers to binary ?

hello I want to learn how to convert fractional number to writing power of ten. for example number = 0.1856 I want to convert 1856*10^-4 . also I want to learn how I write 1856 at binary. finally I will change least significant bit of this binary number ? how I do all of these?

Best Answer

dec2bin(floor(Number * 10^4))
and set bitset()