LVGL V8 显示浮点数 1.先定义个字符数组 char temp_data[10] = { 0 }; 2.再通过sprint函数转换成字符输出即可 sprintf((char*)temp_data, "%.2f", 23.64);//格式化输出 浮点数转成字符串输出 lv_label_set_text_fmt(guider_ui.screen1_label_9, "%s", (const char*)temp_data);