1994-06-24 14:02:31 +00:00
|
|
|
/* $Id$ */
|
1989-05-30 13:34:25 +00:00
|
|
|
|
2007-04-27 22:41:39 +00:00
|
|
|
#include "loc_incl.h"
|
|
|
|
|
|
|
|
#ifndef ACKCONF_NO_STDIO_FLOAT
|
1989-05-30 13:34:25 +00:00
|
|
|
|
1989-12-18 15:04:14 +00:00
|
|
|
#include "../stdlib/ext_fmt.h"
|
|
|
|
void _dbl_ext_cvt(double value, struct EXTEND *e);
|
|
|
|
char *_ext_str_cvt(struct EXTEND *e, int ndigit, int *decpt, int * sign, int ecvtflag);
|
|
|
|
|
|
|
|
static char *
|
|
|
|
cvt(long double value, int ndigit, int *decpt, int *sign, int ecvtflag)
|
|
|
|
{
|
|
|
|
struct EXTEND e;
|
|
|
|
|
|
|
|
_dbl_ext_cvt(value, &e);
|
|
|
|
return _ext_str_cvt(&e, ndigit, decpt, sign, ecvtflag);
|
|
|
|
}
|
1989-05-30 13:34:25 +00:00
|
|
|
|
|
|
|
char *
|
1990-02-27 16:48:01 +00:00
|
|
|
_ecvt(long double value, int ndigit, int *decpt, int *sign)
|
1989-05-30 13:34:25 +00:00
|
|
|
{
|
1989-12-18 15:04:14 +00:00
|
|
|
|
1989-05-30 13:34:25 +00:00
|
|
|
return cvt(value, ndigit, decpt, sign, 1);
|
|
|
|
}
|
|
|
|
|
|
|
|
char *
|
1990-02-27 16:48:01 +00:00
|
|
|
_fcvt(long double value, int ndigit, int *decpt, int *sign)
|
1989-05-30 13:34:25 +00:00
|
|
|
{
|
|
|
|
return cvt(value, ndigit, decpt, sign, 0);
|
|
|
|
}
|
|
|
|
|
2007-04-27 22:41:39 +00:00
|
|
|
#endif /* ACKCONF_NO_STDIO_FLOAT */
|