PostgreSQL Source Code
git master
|
Go to the source code of this file.
Macros | |
#define | DOUBLE_SHORTEST_DECIMAL_LEN 25 |
#define | FLOAT_SHORTEST_DECIMAL_LEN 16 |
Functions | |
int | double_to_shortest_decimal_bufn (double f, char *result) |
int | double_to_shortest_decimal_buf (double f, char *result) |
char * | double_to_shortest_decimal (double f) |
int | float_to_shortest_decimal_bufn (float f, char *result) |
int | float_to_shortest_decimal_buf (float f, char *result) |
char * | float_to_shortest_decimal (float f) |
#define DOUBLE_SHORTEST_DECIMAL_LEN 25 |
Definition at line 44 of file shortest_dec.h.
#define FLOAT_SHORTEST_DECIMAL_LEN 16 |
Definition at line 57 of file shortest_dec.h.
char* double_to_shortest_decimal | ( | double | f | ) |
Definition at line 1070 of file d2s.c.
References DOUBLE_SHORTEST_DECIMAL_LEN, double_to_shortest_decimal_buf(), and palloc().
int double_to_shortest_decimal_buf | ( | double | f, |
char * | result | ||
) |
Definition at line 1053 of file d2s.c.
References Assert, DOUBLE_SHORTEST_DECIMAL_LEN, and double_to_shortest_decimal_bufn().
Referenced by double_to_shortest_decimal(), float8out_internal(), and outDouble().
int double_to_shortest_decimal_bufn | ( | double | f, |
char * | result | ||
) |
Definition at line 1015 of file d2s.c.
References copy_special_str(), d2d(), d2d_small_int(), DOUBLE_EXPONENT_BITS, DOUBLE_MANTISSA_BITS, double_to_bits(), and to_chars().
Referenced by double_to_shortest_decimal_buf().
char* float_to_shortest_decimal | ( | float | f | ) |
Definition at line 797 of file f2s.c.
References FLOAT_SHORTEST_DECIMAL_LEN, float_to_shortest_decimal_buf(), and palloc().
int float_to_shortest_decimal_buf | ( | float | f, |
char * | result | ||
) |
Definition at line 780 of file f2s.c.
References Assert, FLOAT_SHORTEST_DECIMAL_LEN, and float_to_shortest_decimal_bufn().
Referenced by float4out(), and float_to_shortest_decimal().
int float_to_shortest_decimal_bufn | ( | float | f, |
char * | result | ||
) |
Definition at line 742 of file f2s.c.
References copy_special_str(), f2d(), f2d_small_int(), FLOAT_EXPONENT_BITS, FLOAT_MANTISSA_BITS, float_to_bits(), and to_chars().
Referenced by float_to_shortest_decimal_buf().