About 50,000 results
Open links in new tab
  1. How to convert a decimal number into fraction? - Stack Overflow

    I was wondering how to convert a decimal into a fraction in its lowest form in Python. For example:

  2. Convert fraction to decimal in Python - Stack Overflow

    Since both Fraction and Decimal are objects in Python's standard library, the question in title implies you want to do this python - Best way to convert fractions.Fraction to decimal.Decimal? …

  3. Fraction to decimal in MATLAB - Stack Overflow

    Closed 7 years ago. How can I convert a fractional number into decimal number in MATLAB? I have written some program in MATLAB. But in the iterative process it gives all the number in …

  4. convert decimal number to fraction in javascript or closest fraction

    May 10, 2014 · So i want to be able to convert any decimal number into fraction. In both forms such as one without remainder like this: 3/5 or with remainder: 3 1/4. what i was doing is this.. …

  5. java - Convert fraction to decimal number - Stack Overflow

    It doesn't do what task says it should. You read doubles instead of integers, and the decimal equivalent is not what you print out. Decimal equivalent for 1/2 is 0.5. And you print 5. Also, …

  6. Convert a decimal number to a fraction / rational number

    Feb 9, 2013 · What function from fraction.js should I use to convert a decimal to a fraction (for example, converting 0.003 to a fraction such as 3/1000)? I still don't know which specific …

  7. Function in R to convert a decimal to a fraction with a specified ...

    Aug 1, 2017 · Say I have a list of decimals x <- c (0.55, 0.246, 0.767) Then I wish to have these converted into fractions out of 10 so that I get 6/10 2/10 8/10 I have come across this which …

  8. Convert Fraction String to Decimal? - Stack Overflow

    Aug 22, 2011 · I developed a function to convert a value using a factor that may be passed as a fraction of integers or decimals. The user input and conversion factor might not be in the …

  9. c# - Convert a text fraction to a decimal - Stack Overflow

    May 23, 2017 · However it is possible that some quantities will be entered as string fractions e.g 1/2 for 0.5. I want to be able to convert these to decimal before storing them to the database …

  10. python - NumPy: convert decimals to fractions - Stack Overflow

    Feb 13, 2017 · Are you just talking about the representation when printing it? Or do you actually want numpy to invert the matrix using something like fractions.Fraction?