Decimal floating point number to binary: Difference between revisions

m
added whitespace before the TOC (table of contents), added a ;Task: (bold) header, corrected a misspelling.
(OCaml version)
m (added whitespace before the TOC (table of contents), added a ;Task: (bold) header, corrected a misspelling.)
Line 1:
{{draft task}}
 
Your task is to create a program that takes a decimal floating point number and displays its binary representation and vice-versa: takes a floating point binary number and outputs its decimal representation.
;Task:
Your task is to createCreate a program that takes a decimal floating point number and displays its binary representation and vice- versa: takes a floating point binary number and outputs its decimal representation.
 
 
The output might be something like this:
: 23.34375 => 10111.01011
: 1011.11101 => 11.90625
<br><br>
 
=={{header|dc}}==