2012-05-24 32 views

回答

4

對於貨幣,請使用number_to_currency。它應該像

number_to_currency(1.4,格式爲: 「%N%U」)

對於時間,用strftime

4

你想要的這裏是:

'%.2f' % your_thing