Bookmarks    
nPr and nCr    
Random Number    
SD Calculator    
Sample Size    
Percent Error    
Density    
Molarity    
Molar Mass    
Ohm's Law    
Watts to Amps    
Voltage Drop    
Long Division    
Mixed Numbers    
Rounding    
Nth Root    
Exponents    
Half-Life    
Polar Form    
De Moivre    
3D Distance    
Point to Line    
Cross Product    
Determinant    
Sin Cos Tan    
Triangle Area    
Scale Factor    
Sector Area    
Ellipse Area    
Cube Volume    
Box Volume    
Sphere Volume    
Cone Volume    
Pipe Volume    
Time Duration    
Time Card    
Present Value    
Future Value    
Churn Rate    
A/B Test Calc    
SEO Traffic    
Ideal Weight    
Fat Intake    
Child Height    
Golf Handicap    
Heat Index    
Wind Chill    
Dew Point    
Download Time    
kWh to Cost    
AC Size (BTU)    
Heating Costs    
LED Savings    
Trip Gas Cost    
Tire Size    
Solar Output    
Solar Payback    
Battery Size    
Wall Area    
Gravel Needed    
Mortar Mix    
Slope Grade    
Curtain Size    
Soil Needed    
Sod Needed    
Ramp Length    
Blind Size    
Drain Slope    
Board Feet    
Heat Loss    
Furniture Fit    
Moving Boxes    
Plywood Cuts    
Shelf Sag    
   Add
Probability and random number calculators
Independent Events
Independent Events
Two Events Solver
Two Events Solver
Repeated Trials
Repeated Trials
Bayes' Theorem
Bayes' Theorem
Expected Value
Expected Value
Binomial Distribution
Binomial Distribution
nPr and nCr
nPr and nCr
Circular Permutation
Circular Permutation
With Repetition
With Repetition
Random Number
Random Number
Averages and statistics calculators
Average Calculator
Average Calculator
Mean Median Mode
Mean Median Mode
SD Calculator
SD Calculator
Quartiles & IQR
Quartiles & IQR
Frequency Table
Frequency Table
Correlation (r)
Correlation (r)
Normal Probability
Normal Probability
Z-Score Calculator
Z-Score Calculator
Confidence Interval
Confidence Interval
Sample Size
Sample Size
Mark & Recapture
Mark & Recapture
P-Value Calculator
P-Value Calculator
Percentage and ratio calculators
Percentage Calc
Percentage Calc
Percent Change
Percent Change
Percent Difference
Percent Difference
Percent Error
Percent Error
Ratio Calculator
Ratio Calculator
Discount Calculator
Discount Calculator
Sales Tax Calculator
Sales Tax Calculator
Margin Calculator
Margin Calculator
Speed calculators
Speed Calculator
Speed Calculator
Density and concentration calculators
Density
Density
Molarity
Molarity
Molar Mass
Molar Mass
Physics and electricity calculators
Ohm's Law
Ohm's Law
Watts to Amps
Watts to Amps
Resistor Colors
Resistor Colors
Voltage Drop
Voltage Drop
Unit conversion calculators
Weight Converter
Weight Converter
Shoe Size Converter
Shoe Size Converter
Integer and signed number calculators
Long Division
Long Division
LCM Calculator
LCM Calculator
GCF Calculator
GCF Calculator
Integer Calculator
Integer Calculator
Prime Factorization
Prime Factorization
Diophantine Solver
Diophantine Solver
Modulo Calculator
Modulo Calculator
Factor Calculator
Factor Calculator
Roman Numerals
Roman Numerals
Fraction, decimal and rounding calculators
Fraction Calculator
Fraction Calculator
Mixed Numbers
Mixed Numbers
Simplify Fractions
Simplify Fractions
Fraction to Decimal
Fraction to Decimal
Decimal to Fraction
Decimal to Fraction
Rounding
Rounding
Equation and inequality calculators
Linear Equation
Linear Equation
Linear Systems
Linear Systems
Quadratic Formula
Quadratic Formula
Absolute Value
Absolute Value
Quadratic Inequality
Quadratic Inequality
Polynomial calculators
Binomial Theorem
Binomial Theorem
Square root and nth root calculators
Simplify Radicals
Simplify Radicals
Nth Root
Nth Root
Exponent and logarithm calculators
Exponents
Exponents
Log Calculator
Log Calculator
Number of Digits
Number of Digits
Scientific Notation
Scientific Notation
Sci. Notation Math
Sci. Notation Math
Half-Life
Half-Life
Complex number calculators
Complex Numbers
Complex Numbers
Polar Form
Polar Form
De Moivre
De Moivre
Function and graph calculators
Slope Calculator
Slope Calculator
Linear Function
Linear Function
Direct & Inverse Variation
Direct & Inverse Variation
y = ax² Calculator
y = ax² Calculator
Distance Formula
Distance Formula
3D Distance
3D Distance
Section Formula
Section Formula
Point to Line
Point to Line
Lat/Long Distance
Lat/Long Distance
Complete the Square
Complete the Square
Circle Equation
Circle Equation
Conic Sections
Conic Sections
Polar Coordinates
Polar Coordinates
Sequence calculators
Arithmetic Sequence
Arithmetic Sequence
Geometric Sequence
Geometric Sequence
Fibonacci Sequence
Fibonacci Sequence
Recurrence Relation
Recurrence Relation
Vector calculators
Vector Calculator
Vector Calculator
Cross Product
Cross Product
Matrix calculators
Matrix Calculator
Matrix Calculator
Determinant
Determinant
Inverse Matrix
Inverse Matrix
Plane geometry calculators
Sin Cos Tan
Sin Cos Tan
Degrees ⇔ Radians
Degrees ⇔ Radians
a sin θ + b cos θ
a sin θ + b cos θ
Triangle Solver
Triangle Solver
Triangle Area
Triangle Area
Right Triangle
Right Triangle
Pythagorean Theorem
Pythagorean Theorem
Polygon Angles
Polygon Angles
Scale Factor
Scale Factor
Parallel Lines
Parallel Lines
Rectangle Area
Rectangle Area
Parallelogram Area
Parallelogram Area
Trapezoid Area
Trapezoid Area
Circle Calculator
Circle Calculator
Sector Area
Sector Area
Inscribed Angle
Inscribed Angle
Ellipse Area
Ellipse Area
Solid geometry calculators
Cube Volume
Cube Volume
Cube Surface Area
Cube Surface Area
Box Volume
Box Volume
Box Surface Area
Box Surface Area
Cylinder Volume
Cylinder Volume
Cylinder Surface
Cylinder Surface
Sphere Volume
Sphere Volume
Sphere Surface
Sphere Surface
Spherical Cap Volume
Spherical Cap Volume
Cap Surface Area
Cap Surface Area
Ellipsoid Volume
Ellipsoid Volume
Ellipsoid Surface
Ellipsoid Surface
Pyramid Volume
Pyramid Volume
Pyramid Surface
Pyramid Surface
Cone Volume
Cone Volume
Cone Surface Area
Cone Surface Area
Frustum Volume
Frustum Volume
Frustum Surface Area
Frustum Surface Area
Pipe Volume
Pipe Volume
Capsule Volume
Capsule Volume
Capsule Surface Area
Capsule Surface Area
Date and time calculators
Age Calculator
Age Calculator
Days Between Dates
Days Between Dates
Date Calculator
Date Calculator
Hours From Now
Hours From Now
Day of the Week
Day of the Week
Time Calculator
Time Calculator
Time Zone Converter
Time Zone Converter
Hours Calculator
Hours Calculator
Time Duration
Time Duration
Time Card
Time Card
Finance and economics calculators
Compound Interest
Compound Interest
Simple Interest
Simple Interest
Interest Calculator
Interest Calculator
TVM Calculator
TVM Calculator
Present Value
Present Value
Future Value
Future Value
ROI Calculator
ROI Calculator
IRR Calculator
IRR Calculator
Payback Period
Payback Period
Average Return
Average Return
GDP Calculator
GDP Calculator
Web marketing and ad metric calculators
CTR Calculator
CTR Calculator
Conversion Rate
Conversion Rate
CPC, CPM & CPA
CPC, CPM & CPA
ROAS Calculator
ROAS Calculator
Break-Even CPA
Break-Even CPA
LTV Calculator
LTV Calculator
CAC Calculator
CAC Calculator
Churn Rate
Churn Rate
A/B Test Calc
A/B Test Calc
A/B Sample Size
A/B Sample Size
SEO Traffic
SEO Traffic
Break-Even Point
Break-Even Point
Markup vs. Margin
Markup vs. Margin
CAGR Calculator
CAGR Calculator
Health and fitness calculators
BMI Calculator
BMI Calculator
Sleep Calculator
Sleep Calculator
Calorie Calculator
Calorie Calculator
BMR Calculator
BMR Calculator
TDEE Calculator
TDEE Calculator
Ideal Weight
Ideal Weight
Body Fat Calculator
Body Fat Calculator
Lean Body Mass
Lean Body Mass
Calories Burned
Calories Burned
Protein Intake
Protein Intake
Macro Calculator
Macro Calculator
Carb Calculator
Carb Calculator
Fat Intake
Fat Intake
Child Height
Child Height
Sports calculators
Golf Handicap
Golf Handicap
Pace Calculator
Pace Calculator
1RM Calculator
1RM Calculator
Target Heart Rate
Target Heart Rate
Weather calculators
Heat Index
Heat Index
Wind Chill
Wind Chill
Dew Point
Dew Point
Computer calculators
Base Converter
Base Converter
Subnet Calculator
Subnet Calculator
Download Time
Download Time
Household energy and budget calculators
Electricity Cost
Electricity Cost
kWh to Cost
kWh to Cost
Yearly kWh to Cost
Yearly kWh to Cost
AC Size (BTU)
AC Size (BTU)
AC Running Cost
AC Running Cost
Heating Costs
Heating Costs
Gas vs Electric
Gas vs Electric
LED Savings
LED Savings
Salary Calculator
Salary Calculator
Budget Calculator
Budget Calculator
Car calculators
Trip Gas Cost
Trip Gas Cost
EV Charging Cost
EV Charging Cost
EV vs Gas Cost
EV vs Gas Cost
MPG Calculator
MPG Calculator
Tire Size
Tire Size
Solar power and battery calculators
Solar Output
Solar Output
Solar Panel Count
Solar Panel Count
Solar Payback
Solar Payback
Battery Size
Battery Size
Home and DIY calculators
Tile Calculator
Tile Calculator
Stair Calculator
Stair Calculator
Concrete Volume
Concrete Volume
Wall Area
Wall Area
Wallpaper Rolls
Wallpaper Rolls
Paint Calculator
Paint Calculator
Flooring Needed
Flooring Needed
Exterior Walls
Exterior Walls
Gravel Needed
Gravel Needed
Mortar Mix
Mortar Mix
Slope Grade
Slope Grade
Lumber Cut List
Lumber Cut List
Lot Coverage/FAR
Lot Coverage/FAR
Sheet Vinyl Roll
Sheet Vinyl Roll
Insulation Needed
Insulation Needed
Curtain Size
Curtain Size
TV Size & Distance
TV Size & Distance
Soil Needed
Soil Needed
Sod Needed
Sod Needed
Block Calculator
Block Calculator
Brick Calculator
Brick Calculator
Deck Materials
Deck Materials
Ramp Length
Ramp Length
Pilot Hole Size
Pilot Hole Size
Room Ventilation
Room Ventilation
Paint Thinning
Paint Thinning
Baseboard & Trim
Baseboard & Trim
Blind Size
Blind Size
Picture Hanging
Picture Hanging
Drain Slope
Drain Slope
Screw Calculator
Screw Calculator
Board Feet
Board Feet
Fence Calculator
Fence Calculator
Wood Shrinkage
Wood Shrinkage
Caulk Calculator
Caulk Calculator
Heat Loss
Heat Loss
Furniture Fit
Furniture Fit
Moving Boxes
Moving Boxes
Storage Capacity
Storage Capacity
Plywood Cuts
Plywood Cuts
Shelf Sag
Shelf Sag

Fraction to Decimal Calculator (Numerator ÷ Denominator, Repeating Decimals)

Enter the fraction just as it looks (top box = numerator, bottom box = denominator) and press "Calculate" to see it as a decimal.

Besides whole numbers, you can enter negative numbers and decimals (for example, 2.5). The denominator cannot be 0.
Result
Enter the numerator and denominator in the fields on the left and press "Calculate". The result will appear here.

What you can do on this page

  • Enter the numerator (top number) and denominator (bottom number) of a fraction, and you see it as a decimal right away
  • A fraction that does not divide evenly, such as \(\dfrac{2}{3}\) (one that becomes a repeating decimal), is shown rounded to 14 significant digits
  • The numerator and denominator can be negative numbers or decimals (for example, \(-\dfrac{5}{8}\) → -0.625, \(\dfrac{2.5}{4}\) → 0.625)
  • A plain-language explanation of how to convert, and copy-and-paste formulas for Excel, Google Sheets and Python are all on this page
A mixed number such as \(1\tfrac{1}{2}\) cannot be entered as it is. Change it to an improper fraction first (\(\dfrac{3}{2}\) in this example).

What is this calculation used for?

Turning recipe amounts into spoons you can measure with

A recipe calls for \(\dfrac{1}{3}\) cup, but you only have measuring spoons. One cup is 16 tablespoons, and \(\dfrac{1}{3}\) as a decimal is \(1 \div 3 \approx 0.333\), so you need \(16 \times 0.333 \approx 5.33\) tablespoons, which is 5 tablespoons plus 1 teaspoon.
You cannot read a fraction off a scale or a measuring cup with only decimal marks, so fraction to decimal is one of the most used conversions in the kitchen.

Batting average - turning 10 hits in 30 at-bats into .333 (sports)

A batting average is hits ÷ at-bats, which is the fraction \(\dfrac{10}{30}\) written as a decimal: \(10 \div 30 \approx 0.333\), shown as ".333" and read "three thirty-three".
Batting averages, win percentages, free-throw percentages and other sports stats are exactly this calculation, and players and scorekeepers use it every day.

Reporting a test score or goal progress as a percent

45 points out of 60 is the fraction \(\dfrac{45}{60}\). As a decimal it is \(45 \div 60 = 0.75\), and multiplying by 100 gives 75%.
Fraction → decimal → percent is the basis of every situation where you tell others a proportion, such as grades, survey results and progress toward a sales goal.

Fractional inches in DIY and tools (making things)

Bolts, drill bits and lumber are sized in fractional inches such as \(\dfrac{1}{4}\) inch and \(\dfrac{3}{8}\) inch, while a digital caliper shows decimal inches. \(\dfrac{3}{8}\) inch is \(3 \div 8 = 0.375\) inch, and since 1 inch = 25.4 mm, that is \(0.375 \times 25.4 = 9.525\) mm.
Fraction to decimal is a calculation you really need when choosing parts at the hardware store or working with metric tools.

Splitting a bill that does not divide evenly

If three people split $100, each share is \(\dfrac{100}{3} = 33.333\cdots\) dollars, which does not divide evenly (a repeating decimal). In practice you round and adjust: two people pay $33.33 and one pays $33.34.
If you know that a fraction can turn into a decimal that never ends, you will not suspect a mistake when you see one. You just decide how to round.

Formula

The basic formula for turning a fraction into a decimal (numerator ÷ denominator)
Standard notation (the usual math form)
\(x\) \(=\) \(a\) \(\div\) \(b\)
In words (symbols replaced with words)
③ \(x\): decimal \(=\) ① \(a\): numerator (top number) \(\div\) ② \(b\): denominator (bottom number)
The formula in words
① Take the \(a\): numerator (top number)
② divide it by the \(b\): denominator (bottom number)
③ and you get the \(x\): decimal
Quick example
Turning \(\dfrac{3}{4}\) (three fourths) into a decimal gives
\(x\): decimal \(=\) numerator (3) \(\div\) denominator (4)
\(3 \div 4 = 0.75\)
Key idea
The fraction bar means "÷ (divided by)", so \(\dfrac{a}{b}\) is the same number as \(a \div b\). The key point is to divide in the right order: numerator ÷ denominator, top ÷ bottom. For \(\dfrac{3}{4}\), that is 3 ÷ 4, not 4 ÷ 3.
When the denominator is 10, 100, 1000… (just move the decimal point)
Standard notation (the usual math form)
\(x\) \(=\) \(a\) \(\div\) \(10\) \(n\)
In words (symbols replaced with words)
④ \(x\): decimal \(=\) ① \(a\): numerator \(\div\) ② denominator that is a power of 10 ③ \(n\): number of zeros
The formula in words
① Move the decimal point of the \(a\): numerator
② to the left by the number of zeros in the denominator that is a power of 10
③ that is, \(n\): number of zeros places
④ and you get the \(x\): decimal
Quick example
Turning \(\dfrac{5}{100}\) into a decimal (100 has 2 zeros, so move the decimal point of 5 two places to the left) gives
\(x\): decimal \(=\) numerator (5) \(\div\) power-of-10 denominator (100)
\(5 \div 100 = 0.05\)
Key idea
Even when the denominator is not a power of 10, you can use the same method if you can turn it into one by multiplying the numerator and denominator by the same number (25 in this example): \(\dfrac{3}{4} = \dfrac{75}{100} = 0.75\). A fraction whose denominator is made only by multiplying 2s and 5s (2, 4, 5, 8, 10, 20, 25…) always becomes a decimal that ends (a terminating decimal) this way.
When it does not divide evenly (repeating decimals)
Standard notation (the usual math form)
\(\dfrac{2}{3}\) \(=\) \(0.666\cdots\) \(=\) \(0.\overline{6}\)
In words (symbols replaced with words)
① fraction \(\dfrac{2}{3}\) \(=\) ② a decimal where \(6\) goes on forever \(=\) ③ repeating decimal notation \(0.\overline{6}\)
The formula in words
① Dividing the fraction \(\dfrac{2}{3}\)
② gives a decimal where \(6\) goes on forever
③ so it is written as repeating decimal notation \(0.\overline{6}\) with a bar over the repeating digits
Quick example
When you turn \(\dfrac{1}{7}\) into a decimal, the 6-digit block "142857" repeats forever
fraction \(\dfrac{1}{7}\) \(=\) 0.142857142857… (142857 repeating) \(=\) repeating decimal notation \(0.\overline{142857}\)
\(1 \div 7 = 0.142857142857\cdots = 0.\overline{142857}\)
Key idea
The block of digits that repeats (142857 in this example) is called the repetend. The bar is drawn over the whole block (for a single digit, over just that digit, as in \(0.\overline{6}\)). This calculator shows a repeating decimal rounded to 14 significant digits (for example, \(\dfrac{2}{3}\) → 0.66666666666667). It does not show "…" or the bar, so if you see the same digits repeating, read it as "this fraction does not divide evenly".
To turn a fraction into a decimal, divide: numerator ÷ denominator (top ÷ bottom). If the denominator is a power of 10 (or can be made into one), just move the decimal point. If it does not divide evenly, you get a repeating decimal in which the same block of digits repeats.

Symbols and terms

Symbols

\(a\) a The numerator (top number of the fraction). (Example - 2 in \(\dfrac{2}{7}\))
\(b\) b The denominator (bottom number of the fraction). (Example - 7 in \(\dfrac{2}{7}\))
\(\dfrac{a}{b}\) a over b A fraction. The bar means division, so it is the same number as \(a \div b\).
\(x\) x The decimal you want to find. It is the answer (quotient) when you divide the numerator by the denominator.
\(10^n\) 10 to the n 10 multiplied by itself \(n\) times (10, 100, 1000, …). The small \(n\) at the upper right is the exponent, meaning "multiply \(n\) times", and it equals the number of zeros.
\(0.\overline{6}\) zero point six repeating Bar notation for a repeating decimal. A bar is drawn over the repeating digits (the repetend). When the repetend has two or more digits, the bar covers the whole block, as in \(0.\overline{142857}\).
E E (scientific notation) A symbol used to show very small or very large values. In "3.3333333333333E-6", E-6 means "multiply by 10 to the power of −6", that is, move the decimal point 6 places to the left (= 0.0000033333333333333).

Terms

numerator The number written on top of a fraction - the 3 in "three fourths". As a division, it is the number being divided (the dividend).
denominator The number written on the bottom of a fraction - the 4 in "three fourths". As a division, it is the number you divide by (the divisor), and it cannot be 0.
terminating decimal A decimal whose digits come to an end, such as 0.75 (the division comes out even). If a fraction in lowest terms has a denominator made only by multiplying 2s and 5s, it becomes a terminating decimal.
repeating decimal A decimal in which the same block of digits repeats forever, such as 0.333…. When a fraction does not divide evenly, its decimal is always a repeating decimal.
repetend The block of digits that repeats in a repeating decimal. The repetend of \(\dfrac{1}{3}\) = 0.333… is "3", and the repetend of \(\dfrac{1}{7}\) = 0.142857142857… is "142857".
simplifying a fraction Dividing the numerator and denominator by the same number to make a fraction simpler (also called reducing). Multiplying both by the same number does not change the value either, and that is how you can turn the denominator into a power of 10.
significant digits The digits of a number counted from the first nonzero digit (also called significant figures). "14 significant digits" in this calculator means rounding at the 14th digit counted from the first nonzero digit, as in 0.28571428571429 or 14.285714285714. Note that this is not the same as "14 decimal places".

Good to know before you start

Here is what helps you use the calculation on this page with real understanding, not just by pressing the button.
If you get stuck, going back over these topics is the quickest way forward.

What a fraction means (Grade 3)
  • Knowing that the top number of a fraction is the numerator and the bottom number is the denominator
  • Knowing that \(\dfrac{1}{4}\) means one of 4 equal parts of a whole
Long division into decimals (Grades 5–6)
  • Being able to continue a division such as 3 ÷ 4 past the decimal point until you reach 0.75
Decimal place value (Grades 4–5)
  • Knowing that 0.1 is \(\dfrac{1}{10}\) and 0.01 is \(\dfrac{1}{100}\)
  • Knowing that each division by 10 moves the decimal point one place to the left
Fractions as division (Grade 5)
  • Understanding that a fraction = numerator ÷ denominator
  • Knowing that multiplying the numerator and denominator by the same number does not change the value, as with \(\dfrac{2}{5}\) and \(\dfrac{4}{10}\)
Repeating decimals and rational numbers (Grades 7–8)
  • Knowing that a fraction (a rational number) always becomes either a terminating decimal or a decimal in which the same block of digits repeats

How to calculate it in Excel

Copy the whole table below and paste it into cell A1 in Excel. It works as is.
Table to turn a fraction into a decimal
Numerator a (top number) 2
Denominator b (bottom number) 7
Decimal x =B1/B2
Table for a fraction whose denominator is a power of 10
Numerator a 5
Number of zeros n 2
Decimal x =B1/10^B2
Table to show a repeating decimal rounded
Numerator a 2
Denominator b 3
Decimal (rounded to 14 decimal places) =ROUND(B1/B2,14)
After pasting, B1 and B2 are your inputs, and the last row is calculated automatically. "/" is division, "^" is a power (10^2 is 100), and ROUND is the rounding function.
For example, the first table shows 2 ÷ 7 = 0.285714… in B3, the second shows 0.05, and the third shows 0.66666666666667. Just replace B1 and B2 with your own fraction.

How to calculate it in Google Sheets

Copy the whole table below and paste it into cell A1 in Google Sheets. It works as is.
Table to turn a fraction into a decimal
Numerator a (top number) 2
Denominator b (bottom number) 7
Decimal x =B1/B2
Table for a fraction whose denominator is a power of 10
Numerator a 5
Number of zeros n 2
Decimal x =B1/10^B2
Table to show a repeating decimal rounded
Numerator a 2
Denominator b 3
Decimal (rounded to 14 decimal places) =ROUND(B1/B2,14)
The same formulas as in Excel work as is. Copy the whole table, paste it into cell A1, and replace B1 and B2 with the numerator and denominator of your own fraction.

How to calculate it in Python

numerator = 2    # numerator (top number)
denominator = 7  # denominator (bottom number)

decimal_value = numerator / denominator  # decimal = numerator ÷ denominator
print(f"Decimal: {decimal_value}")

# Show more digits of a fraction that does not divide evenly, to see the repeating block (repetend)
from decimal import Decimal, getcontext
getcontext().prec = 50  # calculate to 50 significant digits
precise_value = Decimal(numerator) / Decimal(denominator)
print(f"To 50 digits: {precise_value}")
Runs with the standard library only. "/" is division. Ordinary division (float) is rounded at about 16 digits, so to see more of the repeating pattern, set the number of digits as in the decimal part at the end. Change the numerator and denominator at the top and run it.

How to write it in LaTeX and other math languages (copy and paste)

The basic formula for turning a fraction into a decimal (numerator ÷ denominator)
x = a ÷ b
x = a \div b
<math xmlns="http://www.w3.org/1998/Math/MathML" display="block">
  <mrow>
    <mi>x</mi>
    <mo>=</mo>
    <mi>a</mi>
    <mo>&#xF7;</mo>
    <mi>b</mi>
  </mrow>
</math>
x = a -: b
a/b
x := a/b;
x = a/b;
x = a ÷ b
When the denominator is 10, 100, 1000… (just move the decimal point)
x = a ÷ 10ⁿ
x = a \div 10^{n}
<math xmlns="http://www.w3.org/1998/Math/MathML" display="block">
  <mrow>
    <mi>x</mi>
    <mo>=</mo>
    <mi>a</mi>
    <mo>&#xF7;</mo>
    <msup><mn>10</mn><mi>n</mi></msup>
  </mrow>
</math>
x = a -: 10^n
a/10^n
x := a/10^n;
x = a/10^n;
x = a ÷ 10^n
When it does not divide evenly (repeating decimals)
2/3 = 0.666… = 0.6̅
\dfrac{2}{3} = 0.666\cdots = 0.\overline{6}
<math xmlns="http://www.w3.org/1998/Math/MathML" display="block">
  <mrow>
    <mfrac><mn>2</mn><mn>3</mn></mfrac>
    <mo>=</mo>
    <mn>0.666</mn><mo>&#x2026;</mo>
    <mo>=</mo>
    <mn>0.</mn>
    <mover accent="true"><mn>6</mn><mo>&#xAF;</mo></mover>
  </mrow>
</math>
2/3 = 0.666... = 0.bar(6)
N[2/3, 14]
evalf[14](2/3);
vpa(2/3, 14)
2/3 = 0.666… = 0.6̅

How to have ChatGPT  do the calculation

You are a math calculation assistant. Do the following calculation by actually running Python code, and base your answer only on the numbers from the execution result (do not answer by mental math or guessing).

Convert the fraction 2/7 to a decimal.
1. The value as a decimal (if it does not divide evenly, give 30 decimal places)
2. Whether it is a terminating decimal or a repeating decimal
3. If it is a repeating decimal, the block of digits that repeats (the repetend)

Show the formulas you used and the numbers from the execution result.

How to Use
  1. 1
    Enter your numbers
    Type the numbers you want to calculate with into the input fields
  2. 2
    Calculate
    Press the "Calculate" button
  3. 3
    Check the result
    The result appears on the spot. The same page also explains the idea behind the calculation and the formula
  DataChef Features
Easy and Free
Unlimited conversions for free.
No technical knowledge required.
Intuitive and user-friendly operation.
No Registration Required
Available immediately after access.
Can be used without registering personal information.
Safe and Secure
Fully SSL encrypted communication.
Automatic file deletion by clicking "download".
Fast
High-speed site access
and rapid file conversion.
No Watermark
No watermark.
No attribution required.
Commercial Use Available
Free for commercial use.
No need to contact us for commercial use permission.