mirror of
https://github.com/lvgl/lvgl.git
synced 2025-01-14 06:42:58 +08:00
Added lv_utils_set_decimal_separator
This commit is contained in:
parent
9846c3f62c
commit
41117ac0a9
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user