MobilityDB  1.0
Enumerations | Functions
tnumber_mathfuncs.h File Reference
#include <postgres.h>
#include <fmgr.h>
#include <catalog/pg_type.h>
Include dependency graph for tnumber_mathfuncs.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Enumerations

enum  TArithmetic {
  ADD, SUB, MULT, DIV,
  DIST
}
 Enumeration for the arithmetic functions. More...
 

Functions

Datum datum_round (Datum value, Datum prec)
 Round the number to the number of decimal places. More...
 
Datum add_base_temporal (PG_FUNCTION_ARGS)
 
Datum add_temporal_base (PG_FUNCTION_ARGS)
 
Datum add_temporal_temporal (PG_FUNCTION_ARGS)
 
Datum sub_base_temporal (PG_FUNCTION_ARGS)
 
Datum sub_temporal_base (PG_FUNCTION_ARGS)
 
Datum sub_temporal_temporal (PG_FUNCTION_ARGS)
 
Datum mult_base_temporal (PG_FUNCTION_ARGS)
 
Datum mult_temporal_base (PG_FUNCTION_ARGS)
 
Datum mult_temporal_temporal (PG_FUNCTION_ARGS)
 
Datum div_base_temporal (PG_FUNCTION_ARGS)
 
Datum div_temporal_base (PG_FUNCTION_ARGS)
 
Datum div_temporal_temporal (PG_FUNCTION_ARGS)
 
int int_cmp (const void *a, const void *b)
 Returns a negative or a positive value depending on whether the first number is less than or greater than the second one. More...