Added lv_utils_set_decimal_separator

This commit is contained in:
xennex22
2020-03-20 15:24:17 -07:00
committed by GitHub
parent 9846c3f62c
commit 41117ac0a9

View File

@@ -38,11 +38,17 @@ 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.
*