Next / Previous / Contents / TCC Help System / NM Tech homepage

6.2. The float type

Values of this type represent real numbers, with the usual limitations of IEEE floating point type: it cannot represent very large or very small numbers, and the precision is limited to only about 15 digits.

Functions:

float(n_s)

Converts a number or string n_s to a floating-point number.

For common transcendental functions like cosine and exponential, see the math module below.