In Java, how can I efficiently convert floats like 1234.56
and similar BigDecimals into Strings like $1,234.56
I'm looking for the following:
String 12345.67
becomes String $12,345.67
I'm also looking to do this with Float
and BigDecimal
as well.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…