Reference fract()

fract()

Calculates the fractional part of a number.

A number's fractional part includes its decimal values. For example, fract(12.34) returns 0.34.

Examples

Syntax

fract(n)

Parameters

n

number whose fractional part will be found.

Notice any errors or typos? Please let us know. Please feel free to edit src/math/calculation.js and open a pull request!

Related References