Frac

Description

This function returns the fractional part of a number.

Syntax

double frac( double x)

Parameters

x

is the numeric value you want to get its fractional part.

Return

Returns the fractional part of input x.

Example

frac(3.1415) = ; //should return 0.1415