## Fractional part

In the previous post I talked about the floor and ceiling functions. Go check them out if you haven’t already! We are going to need them to learn about the fractional part. What is fractional part? The fractional part of a positive number is the part after the decimal, i.e. the decimal part. We can write the fractional part of a number x as Here are some examples: If you noticed, the fractional part of 2.6 is 0.6, which is 2.6-2, and the same happens for the other examples. This… Read more Fractional part →