Decimal floating point number to binary

From Rosetta Code
Revision as of 14:51, 2 February 2014 by rosettacode>Paulo Jorente (Created page with "{{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 numbe...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Task
Decimal floating point number to binary
You are encouraged to solve this task according to the task description, using any language you may know.

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.
The output would be something like this:
23.34375 => 10111.01011
1011.11101 => 11.90625