| 183 | } |
| 184 | |
| 185 | static int lidardouble2string(char* string, double value) { |
| 186 | int len; |
| 187 | len = sprintf(string, "%.15f", value) - 1; |
| 188 | while (string[len] == '0') len--; |
| 189 | if (string[len] != '.') len++; |
| 190 | string[len] = '\0'; |
| 191 | return len; |
| 192 | } |
| 193 | |
| 194 | static I32 lidardouble2string(char* string, double value, double precision) { |
| 195 | if (precision == 0.1) |