| 961 | |
| 962 | |
| 963 | static void append_json_point(String *txt, uint max_dec, const char *data) |
| 964 | { |
| 965 | double x,y; |
| 966 | get_point(&x, &y, data); |
| 967 | if (max_dec < FLOATING_POINT_DECIMALS) |
| 968 | { |
| 969 | x= my_double_round(x, max_dec, FALSE, FALSE); |
| 970 | y= my_double_round(y, max_dec, FALSE, FALSE); |
| 971 | } |
| 972 | txt->qs_append('['); |
| 973 | txt->qs_append(x); |
| 974 | txt->qs_append(", ", 2); |
| 975 | txt->qs_append(y); |
| 976 | txt->qs_append(']'); |
| 977 | } |
| 978 | |
| 979 | |
| 980 | /* |
no test coverage detected