My last question leads me to this one:
wxTextCtrl:setValue( TcGrossProfit, io_lib:format("~.2f",[NewGrossProfit])),
generates an error from wxTextCtrl, with a bad arg.
I know this is the culprit
NewGrossProfit = 5.45333,
io_lib:format("~.2f",[NewGrossProfit])
Thanks for the last one, hope this one's easier
-B
EDIT
Last Question: http://stackoverflow.com/questions/4006201/truncate-a-float-in-erlang