diff --git a/src/lv_misc/lv_utils.h b/src/lv_misc/lv_utils.h index 33e462b39..17c221344 100644 --- a/src/lv_misc/lv_utils.h +++ b/src/lv_misc/lv_utils.h @@ -38,12 +38,18 @@ char * lv_utils_num_to_str(int32_t num, char * buf); /** * Convert a fixed point number to string * @param num a number - * @param number of digits after decimal point + * @param decimals number of digits after decimal point * @param buf pointer to a `char` buffer. Buffer must be big enough for number. * @return same as `buf` (just for convenience) */ -char * lv_utils_num_to_str_fixed(int32_t num, int decimals, char * buf); - +char * lv_utils_num_to_str_fixed(int32_t num, int32_t decimals, char * buf, size_t bufsize); + +/** + * Set the decimal separator character used by lv_utils_num_to_str_fixed + * @param separator the decimal separator char + */ +void lv_utils_set_decimal_separator(char separator); + /** Searches base[0] to base[n - 1] for an item that matches *key. * * @note The function cmp must return negative if its first