Next: , Previous: , Up: Language-visible functions   [Contents][Index]


Floating-point-function descriptions

Floating-point functions

Function: ncptl_int ncptl_func_floor (ncptl_int num)
Function: double ncptl_dfunc_floor (double num)

Return the floor of num. (This is the identity function in the case of ncptl_func_floor().)

Function: ncptl_int ncptl_func_ceiling (ncptl_int num)
Function: double ncptl_dfunc_ceiling (double num)

Return the ceiling of num. (This is the identity function in the case of ncptl_func_ceiling().)

Function: ncptl_int ncptl_func_round (ncptl_int num)
Function: double ncptl_dfunc_round (double num)

Return num rounded to the nearest integer. (This is the identity function in the case of ncptl_func_round().)

Scott Pakin, pakin@lanl.gov