Cody

Problem 45326. Decimal Fraction to binary conversion

Given an fraction decimal number n, convert it to its equivalent binary number.

If it is an infinite binary fraction, keep it upto k precision point.

  • n=55.125
  • out='110111.001'

Solution Stats

100.0% Correct | 0.0% Incorrect
Last Solution submitted on Apr 02, 2020

Problem Comments