# frac function

Fractional part of a number.

## How to write it

### frac(x)

**x**

A number. Takes a number.

## Examples

- $\displaystyle \operatorname{frac}(2.75) = 0.75$

  `frac(2.75)`

  In the solver, `frac(2.75)` gives `0.75`.

  [Open in the solver](https://hilberon.com/?q=frac%282.75%29)

## Related functions

- [gcd](https://hilberon.com/library/gcd)

  Greatest common divisor of whole numbers.
- [floor](https://hilberon.com/library/floor)

  Greatest whole number not above a number.
- [im](https://hilberon.com/library/im)

  Imaginary part of a complex number.
- [factorial](https://hilberon.com/library/factorial)

  Factorial: n! is the product of the whole numbers from 1 to n.
- [lcm](https://hilberon.com/library/lcm)

  Least common multiple of whole numbers.
- [exp](https://hilberon.com/library/exp)

  Exponential function; exp(x) is the power e^x.

---
Source: https://hilberon.com/library/frac
