Quote:

> Hi,

> I wish to know how work the functions

> Trunc(x)

truncates the number, ie you get the part prior to the "."

without rounding

-> 3, -27

Quote:

> Int(x)

rounds to the closest integer

-> 3, -27

Quote:

> Frac(x)

returns the fraction, ie the part after the "."

-> 0.1416, -0.1888 (this is my guess, I didn't test whether

it includes the minus)

Quote:

> ....so I can adapt a Pascal program in C/C++

> What each function is suppose to return if

> X=3.1416 and

> X=-27.1888 for example.

-Mike