RawSushi's Tech Journal
My online tech scrapbook where I keep my notes in case I need to look them up later
Tuesday, December 2, 2014
Cocos2D-X Formatting Number to Two Decimal Places
Format with "%.2f" assuming the number is a floating point type.
Reference:
http://stackoverflow.com/questions/4784336/two-decimal-places-using-printf
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment