Ad
related to: 2 7 fraction to decimal conversion
Search results
Results From The WOW.Com Content Network
A fixed-point representation of a fractional number is essentially an integer that is to be implicitly multiplied by a fixed scaling factor. For example, the value 1.23 can be stored in a variable as the integer value 1230 with implicit scaling factor of 1/1000 (meaning that the last 3 decimal digits are implicitly assumed to be a decimal fraction), and the value 1 230 000 can be represented ...
Thus, it is often useful to convert repeating decimals into fractions. A conventional way to indicate a repeating decimal is to place a bar (known as a vinculum) over the digits that repeat, for example 0. 789 = 0.789789789... For repeating patterns that begin immediately after the decimal point, the result of the conversion is the fraction ...
Conversely the period of the repeating decimal of a fraction c / d will be (at most) the smallest number n such that 10 n − 1 is divisible by d. For example, the fraction 2 / 7 has d = 7, and the smallest k that makes 10 k − 1 divisible by 7 is k = 6, because 999999 = 7 × 142857. The period of the fraction 2 / 7 is ...
As 20 has the same prime factors as 10 (two and five), a fraction will terminate in decimal if and only if it terminates in vigesimal. ... 2, 7: 0.0 714285: 0.1 8B: 2, 7
1 ⁄ 7 = 0.142857142857... 1318 ⁄ 185 = 7.1243243243... Every time this happens the number is still a rational number (i.e. can alternatively be represented as a ratio of an integer and a positive integer). Also the converse is true: The decimal expansion of a rational number is either finite, or endlessly repeating.
The final conversion is from binary to decimal fractions. The only difficulty arises with repeating fractions, but otherwise the method is to shift the fraction to an integer, convert it as above, and then divide by the appropriate power of two in the decimal base. For example:
Fractions such as 1 ⁄ 3 are displayed as decimal approximations, for example rounded to 0.33333333. Also, some fractions (such as 1 ⁄ 7, which is 0.14285714285714; to 14 significant figures) can be difficult to recognize in decimal form; as a result, many scientific calculators are able to work in vulgar fractions or mixed numbers.
Working directly with decimal (base-10) fractions can avoid the rounding errors that otherwise typically occur when converting between decimal fractions (common in human-entered data, such as measurements or financial information) and binary (base-2) fractions. The advantage of decimal floating-point representation over decimal fixed-point and ...