|
@@ -1496,7 +1496,20 @@ char *ftostr12ns(const float &x)
|
1496
|
1496
|
return conv;
|
1497
|
1497
|
}
|
1498
|
1498
|
|
1499
|
|
-// Convert int to lj string with +123.0 format
|
|
1499
|
+// convert float to space-padded string with -_23.4_ format
|
|
1500
|
+char *ftostr32np(const float &x) {
|
|
1501
|
+ char *c = ftostr32(x);
|
|
1502
|
+ if (c[0] == '0' || c[0] == '-') {
|
|
1503
|
+ if (c[0] == '0') c[0] = ' ';
|
|
1504
|
+ if (c[1] == '0') c[1] = ' ';
|
|
1505
|
+ }
|
|
1506
|
+ if (c[5] == '0') {
|
|
1507
|
+ c[5] = ' ';
|
|
1508
|
+ if (c[4] == '0') c[4] = c[3] = ' ';
|
|
1509
|
+ }
|
|
1510
|
+ return c;
|
|
1511
|
+}
|
|
1512
|
+
|
1500
|
1513
|
char *itostr31(const int &xx)
|
1501
|
1514
|
{
|
1502
|
1515
|
conv[0]=(xx>=0)?'+':'-';
|