|
@@ -2967,7 +2967,7 @@ char *itostr4(const int &xx)
|
2967
|
2967
|
// convert float to string with +1234.5 format
|
2968
|
2968
|
char *ftostr51(const float &x)
|
2969
|
2969
|
{
|
2970
|
|
- int xx=x*10;
|
|
2970
|
+ long xx=x*10;
|
2971
|
2971
|
conv[0]=(xx>=0)?'+':'-';
|
2972
|
2972
|
xx=abs(xx);
|
2973
|
2973
|
conv[1]=(xx/10000)%10+'0';
|
|
@@ -2983,7 +2983,7 @@ char *ftostr51(const float &x)
|
2983
|
2983
|
// convert float to string with +123.45 format
|
2984
|
2984
|
char *ftostr52(const float &x)
|
2985
|
2985
|
{
|
2986
|
|
- int xx=x*100;
|
|
2986
|
+ long xx=x*100;
|
2987
|
2987
|
conv[0]=(xx>=0)?'+':'-';
|
2988
|
2988
|
xx=abs(xx);
|
2989
|
2989
|
conv[1]=(xx/10000)%10+'0';
|