contents   index   previous   next



Clib.modf()

syntax:

Clib.modf(x, i)

where:

x - float to work with.

 

i - variable to receive the integral part of x.

 

return:

number - signed fractional part of x.

 

description:

This method splits a floating point number x into integer and fractional parts, where the integer and fraction both have the same sign as x. The method sets the parameter i to the integer part of x and returns the fractional part of x.

 

see:

Clib.fmod(), Clib.ldiv()

 

 


Clib.pow()