Separate the integer and decimal parts of a number (online calculator)

The id command outputs the integer and decimal parts of a given number or expression containing complex functions. If you input id 3.14 in the form above, the calculator separates it and outputs 1 and 0.14 in the screen.

Integer and decimal parts

The program uses floating point numbers so the decimal part is not exact and sometimes has unnecessarily many digits. You can input a fraction as follows.

Integer and decimal parts

The calculator can take the expression like this.

Integer and decimal parts

Arithmetic

Calculator