【发布时间】:2012-06-25 21:08:20
【问题描述】:
我的最后一个问题让我想到了这个:
wxTextCtrl:setValue( TcGrossProfit, io_lib:format("~.2f",[NewGrossProfit])),
从 wxTextCtrl 生成错误,参数错误。
我知道这是罪魁祸首
NewGrossProfit = 5.45333,
io_lib:format("~.2f",[NewGrossProfit])
感谢最后一个,希望这个更容易
-B
编辑
最后一个问题: Truncate a float in Erlang
【问题讨论】:
标签: floating-point erlang new-operator