1. 如果是输出显示的话用 Format,如:Format('%.2f',[FloatVar]]);2. RichEdit1.Lines.SaveToFile('Myfile.txt');