tcl::mathfunc::trunc

tcl::mathfunc::NAME arg ?arg ...?

The math functions of Tcl 9.1: the functions of C99 acosh, asinh, atanh, cbrt, copysign, dim (fdim of C), erf, erfc, exp2, expm1, fma, gamma (tgamma of C), ldexp, lgamma, log1p, log2, logb, nextafter, remainder, and trunc, and the tests isfinite, isinf, isnan, isnormal, issubnormal, isunordered, and signbit. Each function except a test gives a double. A test gives 0 or 1, and it takes NaN, an integer of any size, or a double.

This page also has tcl::mathfunc::acosh, tcl::mathfunc::asinh, tcl::mathfunc::atanh, tcl::mathfunc::cbrt, tcl::mathfunc::copysign, tcl::mathfunc::dim, tcl::mathfunc::erf, tcl::mathfunc::erfc, tcl::mathfunc::exp2, tcl::mathfunc::expm1, tcl::mathfunc::fma, tcl::mathfunc::gamma, tcl::mathfunc::isfinite, tcl::mathfunc::isinf, tcl::mathfunc::isnan, tcl::mathfunc::isnormal, tcl::mathfunc::issubnormal, tcl::mathfunc::isunordered, tcl::mathfunc::ldexp, tcl::mathfunc::lgamma, tcl::mathfunc::log1p, tcl::mathfunc::log2, tcl::mathfunc::logb, tcl::mathfunc::nextafter, tcl::mathfunc::remainder, tcl::mathfunc::signbit.

Examples

Errors

Facts

Differences from Tcl 8.6