Thousands of tools! Check out Online Tools – I have now added thousands of tools.

I often have to generate a sequence of decimal fractions so I created this simple online utility that does it for me. It lets you generate however many fractions you need starting from any value with any difference between them. It works in the browser and is powered by alien technology from the future.

## Fraction Generator Options

Start and Step
Count and Separator
Base

## Fraction Generator Examples (click to try!)

Increasing Decimal Fractions
In this example, we set the step value to one one-hundredth (0.01), start the sequence from the whole number 1, and generate 100 fractions. The last value in the output list is 1.99.
`1, 1.01, 1.02, 1.03, 1.04, 1.05, 1.06, 1.07, 1.08, 1.09, 1.1, 1.11, 1.12, 1.13, 1.14, 1.15, 1.16, 1.17, 1.18, 1.19, 1.2, 1.21, 1.22, 1.23, 1.24, 1.25, 1.26, 1.27, 1.28, 1.29, 1.3, 1.31, 1.32, 1.33, 1.34, 1.35, 1.36, 1.37, 1.38, 1.39, 1.4, 1.41, 1.42, 1.43, 1.44, 1.45, 1.46, 1.47, 1.48, 1.49, 1.5, 1.51, 1.52, 1.53, 1.54, 1.55, 1.56, 1.57, 1.58, 1.59, 1.6, 1.61, 1.62, 1.63, 1.64, 1.65, 1.66, 1.67, 1.68, 1.69, 1.7, 1.71, 1.72, 1.73, 1.74, 1.75, 1.76, 1.77, 1.78, 1.79, 1.8, 1.81, 1.82, 1.83, 1.84, 1.85, 1.86, 1.87, 1.88, 1.89, 1.9, 1.91, 1.92, 1.93, 1.94, 1.95, 1.96, 1.97, 1.98, 1.99`
Starting value.
How many fractions to generate?
Sequence step value.
Separate fractions with this value.
Decimal Base
Decreasing Fractions
This example uses a negative difference of -0.5. Using a negative difference between the terms creates a list of decreasing fractions that quickly plunges below 0. The start value is set to 5 and the list contains 20 members.
```5
4.5
4
3.5
3
2.5
2
1.5
1
0.5
0
-0.5
-1
-1.5
-2
-2.5
-3
-3.5
-4
-4.5```
Starting value.
How many fractions to generate?
Sequence step value.
Separate fractions with this value.
Decimal Base
Binary Fractions
In this example, we set the output base to the binary that creates a binary fraction sequence. The start value is 128.75 (10000000.11), the step is 0.875 (0.111) and the sequence contains 15 terms.
```10000000.11
10000001.101
10000010.1
10000011.011
10000100.01
10000101.001
10000110
10000110.111
10000111.11
10001000.101
10001001.1
10001010.011
10001011.01
10001100.001
10001101```
Starting value.
How many fractions to generate?
Sequence step value.
Separate fractions with this value.
Binary Base

## How Does This Fraction Generator Work?

This fractional number generator works entirely in your browser and is written in JavaScript. It starts calculating fractions from the `start` value and keeps adding multiples of `difference` value until the output list has exactly `count` members. The output list is called `fractions` and at first it's initialized to an empty array `[]` (empty sequence). To check if fractions list has reached `count` members, it uses `fractions.length` method that returns current number of elements in the list. The starting fraction, difference and count can all be changed in the options. Other extra options include the separator symbol that lets you put any symbol between output fractions and changing the fractions' base. The supported bases are 2-64. To put the output separator symbol between the fractions, this utility calls the `fractions.join(separator)` function and to change the base, it uses `BigNumber` library's `toString(base)` function.

### Created by Browserling

This fraction generator was created by me and my team at Browserling. Behind the scenes, it's actually powered by our web developer tools that are used by millions of people every month. Browserling itself is an online cross-browser testing service powered by alien technology. Check it out!

Secret message: If you love my tools, then I love you, too! Use coupon code TOOLLING to get a discount at my company.