How to output value with float format in table cell?

Description

how to output value with float format in table cell?

lv_table_set_cell_value_fmt(table, i, 1, "%d", 12);  // output "12" OK

sprintf(buf, "%.1f", 1.2f);
lv_table_set_cell_value_fmt(table, i, 1, "%s", buf);  // output "1.2" OK

lv_table_set_cell_value_fmt(table, i, 1, "%.1f", 1.2f);  // output "f" not "1.2"  

Make sure that floating-point support for lv_(s)printf is enabled in lv_conf.h.

// lv_conf.h
#define LV_SPRINTF_USE_FLOAT 1

it works! Thanks.