fractions
Simplifying Fractions With java
Hey guys I am working on a SW here I am kinda in need of help, you see we need to make a method where we are gonna simplify fractions. any idea how? here\'s my code as of now (don\'t mind the dvalue M[详细]
2023-03-24 04:05 分类:问答How do I pass a fraction to python as an exponent in order to calculate the nth root of an integer?
I\'m attempting to write a simple python script that will calculate the squareroot of a numbe开发者_StackOverflowr. heres the code i\'ve come up with and it works. but i would like to learn how to use[详细]
2023-03-14 02:52 分类:问答Converting a float into a string fraction representation
In Java, I am trying to find a way to convert a float number into a fraction string. For example: float num = 1.33333;[详细]
2023-03-05 00:21 分类:问答floating point numbers - closest number to 1.7
I\'m preparing for some exams and one of the ques开发者_StackOverflow中文版tions given in the past is to find the closest number to 1.7 given an imaginary floating point format that has a total of 8 b[详细]
2023-03-02 05:29 分类:问答regex to match irreducible fractions
How can I match irreducible fractions with regex? For example, 23/25, 3/4, 5/2, 100/101, etc. First of all, I have no idea about the gcd-algorithm realization in regex.[详细]
2023-02-25 15:28 分类:问答Egyptian Fractions in C
The ancient Egyptians only used fractions of the form 1/n so any other fraction had to be represented as a sum of such unit fractions and, furthermore, all the unit fractions were different![详细]
2023-02-18 17:59 分类:问答How to adding a fraction with a whole..?
how to adding fraction with whole in C#..: 2 + 1 1/5 = ?? or 3 + 3/4 = ?? -----> it\'s just for example...:), it can be 3 + 2/3 or 4 + 6/7..[详细]
2023-02-18 03:07 分类:问答How do you represent fraction in F# without the loss of precision?
What is best way to represent fractions in F#? Haskell and Rack开发者_StackOverflowet have convinient way to represent ratios. Is there a data type in F# to represent ratios?You can use the F# Powerpa[详细]
2023-02-17 13:23 分类:问答How to get the length of a numbers fraction part?
How do I find out the length or the number of digits of the fraction part of a decimal number? I can see a few aproaches, e.g. with Strings like this one:[详细]
2023-02-17 12:12 分类:问答How to simplify fractions?
How to si开发者_如何学运维mplify a fraction in C#? For example, given 1 11/6, I need it simplified to 2 5/6.If all you want is to turn your fraction into a mixed number whose fractional part is a prop[详细]
2023-02-16 17:13 分类:问答
加载中,请稍侯......