vastplatinum.blogg.se

Decimal to fraction in simplest form calculator
Decimal to fraction in simplest form calculator











Theorems (Rules): (a−a%b)/b = a//b = trunc(a/b) a//b*b+a%b = aįor example: 21/5 is 4 and 1/5 so the quotient 21//5 is 4 and the remainder 21%5 is 1.

decimal to fraction in simplest form calculator

Theorems Since a/b = quotient + remainder/b then we always have The remainder when a is divided by b is a%b = mod(a,b) (quotient) and % (remainder) // means "integer divide" so that a//b means the integer part of a/b or the whole number quotient. + and - may be unary operators as in -(2+3) ^ means to the power of Note that 2^3 means 2 to the power of 3 = 2*2*2=8 whereas 2e3 means 2 times 10 to the power of 3 = 2*10^3 = 2000. To convert a base 10 number to another base, use the tobase function - see below.Īrithmetic operators Use +, -, / as usual but use * for all multiplications.Numbers in other bases can include a 'decimal' point.For example, 'a'12 is a 12 which is 10 in base 10 and 'z'36 is 35 10 For numbers in bases other than 10, from 2 to 35, enclose the digits in single quotes (') and follow the second quote by the base, for example '101'2 is the binary value 101 2 = 5.ĭigits after 9 in bases 11 to 35 are the letters a to z or A to Z as the case does not matter.For scientific notation use e or E to mean times 10 to the power of which must be preceded AND followed by an optionally signed integerįor example 1 000 = +0.1e4 =1E3 = 10000E-1 are all valid forms for a decimal number.

decimal to fraction in simplest form calculator

Altering the value and then pressing the appropriate Calculation button will recompute values to the new precision. Number of decimal places You can control the precision (number of decimal places) of all results by altering the value in the Working Precision input box.













Decimal to fraction in simplest form calculator