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:

number whose fractional part will be found.

Returns

Number: fractional part of n.
This page is generated from the comments in src/math/calculation.js . Please feel free to edit it and submit a pull request!

Related References