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

    Because floating point values can be imprecise, you can end up with 'weird' fractions; limit the denominator to 'simplify' the fraction somewhat, with Fraction.limit_denominator():

  2. Converting a floating-point decimal value to a fraction

    Nov 14, 2020 · By "decimal", do you mean your input is a string of decimal digits and a decimal point, or do you simply mean, not integer? Note that both decimals and binary floating-point …

  3. 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.. …

  4. Power BI Convert Decimals to Custom Fractions - Stack Overflow

    Jan 11, 2019 · Custom Fraction = FORMAT ([My Measure], "# #/13") FORMAT function Edit: FORMAT converts numbers to text, so if you want to sum the numbers, you need to do it first, …

  5. Print number as reduced fraction in R - Stack Overflow

    Feb 18, 2011 · 52 On my old beat-up TI-83 I can get a reduced fraction representation of a rational real number with the following syntax. .14>Frac 7/50 Is there a similar syntax, function, …

  6. Convert Decimal to Fraction Form method (Java) - Stack Overflow

    Nov 14, 2016 · I can't seem to find a simple method that converts a decimal value to fraction form. I need this method for use in a larger program, so the method should be passed a double …

  7. c# - Decimal to Fraction - Stack Overflow

    Sep 6, 2014 · I am working on a system that needs to accept and display complex fractions. The code for accepting fractions and turning them in to a double works, but when I want to display …

  8. 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?

  9. c - Convert Decimal number into Fraction - Stack Overflow

    I am trying to convert decimal number into its fraction. Decimal numbers will be having a maximum 4 digits after the decimal place. example:- 12.34 = 1234/100 12.3456 = …

  10. How can I convert a decimal to a fraction? - Stack Overflow

    Feb 11, 2016 · Google for "decimal to fraction" and you'll get about a gazillion results. I really like this one, because it's simple, has source code (in RPL, similar to Forth, ~25 lines), and is …