make default precision 6 instead of 0
This commit is contained in:
@@ -1551,7 +1551,7 @@ static long getFloatString(
|
||||
char *pbuffer = (char *)pto;
|
||||
float *psrc=(float *)(paddr->pfield);
|
||||
long status = 0;
|
||||
int precision = 0;
|
||||
int precision = 6;
|
||||
struct rset *prset = 0;
|
||||
|
||||
if(paddr) prset = dbGetRset(paddr);
|
||||
@@ -1751,7 +1751,7 @@ static long getDoubleString(
|
||||
char *pbuffer = (char *)pto;
|
||||
double *psrc=(double *)(paddr->pfield);
|
||||
long status = 0;
|
||||
int precision = 0;
|
||||
int precision = 6;
|
||||
struct rset *prset = 0;
|
||||
|
||||
if(paddr) prset = dbGetRset(paddr);
|
||||
@@ -3759,7 +3759,7 @@ static long putFloatString(
|
||||
float *pbuffer = (float *)pfrom;
|
||||
char *pdest=(char *)(paddr->pfield);
|
||||
long status = 0;
|
||||
int precision = 0;
|
||||
int precision = 6;
|
||||
struct rset *prset = 0;
|
||||
short size=paddr->field_size;
|
||||
|
||||
@@ -3960,7 +3960,7 @@ static long putDoubleString(
|
||||
double *pbuffer = (double *)pfrom;
|
||||
char *pdest=(char *)(paddr->pfield);
|
||||
long status = 0;
|
||||
int precision = 0;
|
||||
int precision = 6;
|
||||
struct rset *prset = 0;
|
||||
short size=paddr->field_size;
|
||||
|
||||
|
||||
@@ -796,7 +796,7 @@ static long cvt_f_st(
|
||||
{
|
||||
struct rset *prset = 0;
|
||||
long status = 0;
|
||||
long precision = 0;
|
||||
long precision = 6;
|
||||
|
||||
if(paddr) prset = dbGetRset(paddr);
|
||||
|
||||
@@ -877,7 +877,7 @@ static long cvt_d_st(
|
||||
{
|
||||
struct rset *prset = 0;
|
||||
long status = 0;
|
||||
long precision = 0;
|
||||
long precision = 6;
|
||||
|
||||
if(paddr) prset = dbGetRset(paddr);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user