📅  最后修改于: 2022-03-11 14:48:59.905000             🧑  作者: Mango
myFloatVariable.ToString("0.00"); //2dp Number
myFloatVariable.ToString("n2"); // 2dp Number
myFloatVariable.ToString("c2"); // 2dp currency