#include "spice.h"
#include "misc.h"
Go to the source code of this file.
char* ecvt_n |
( |
double |
d, |
|
|
int |
n |
|
) |
| |
Definition at line 52 of file printnum.c.
62 sprintf(s,
"%+.*e",n,
d);
char* fixxp2 |
( |
char * |
str | ) |
|
Definition at line 19 of file printnum.c.
28 if (!ss) ss = strchr(str,
'E');
29 if (!ss)
return (str);
33 if (xp > 99)
return str;
34 if (xp < -99)
return str;
42 *(ss+1) =
'0' + (xp/10);
43 *(ss+2) =
'0' + (xp%10);
char* printnum |
( |
double |
num | ) |
|
Definition at line 68 of file printnum.c.
static char buf[MAXPROMPT]
char * ecvt_n(double d, int n)