#include "c.h"
#include <math.h>
Go to the source code of this file.
Functions | |
double | rint (double x) |
double rint | ( | double | x | ) |
Definition at line 16 of file rint.c.
Referenced by acquire_inherited_sample_rows(), AdjustFractSeconds(), AdjustIntervalForTypmod(), AdjustTimeForTypmod(), AdjustTimestampForTypmod(), btcostestimate(), calculatePagesPerBuffer(), cash_div_flt4(), cash_div_flt8(), cash_div_int2(), cash_div_int4(), cash_div_int8(), check_effective_io_concurrency(), clamp_row_est(), DecodeInterval(), DecodeNumberField(), dround(), dtoi2(), dtoi4(), dtoi8(), estimate_rel_size(), final_cost_hashjoin(), float4_to_char(), float8_to_char(), ftoi2(), ftoi4(), ftoi8(), genericcostestimate(), gincostestimate(), initial_cost_mergejoin(), initial_cost_nestloop(), interval_div(), interval_mul(), make_append(), make_modifytable(), ParseFractionalSecond(), set_append_rel_size(), and timestamp2tm().
{
return (x >= 0.0) ? floor(x + 0.5) : ceil(x - 0.5);
}