C#中将float类型转换成string类型:string str = value.ToString("F2") // value是个float值 SQL中将一个变量声明为numeric(10,2)类型即可