Life is a journey

Who Dares Wins
  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

2009年11月5日

摘要: How do you truncate a number to a certain number of decimal places? for example, if i have 1.149 and i want to truncate that to 2 decimal places, the number should be 1.14. math.truncate() changes the... 阅读全文

posted @ 2009-11-05 15:39 zhaobin 阅读(326) 评论(0) 推荐(0) 编辑