开发教室
程序设计|Delphi|Java|C++|VB|.NET|Css|Js|PHP|ASP|MySQL|数据库|WEB开发|网页特效|视频
首页 > 开发教室 > 程序设计 > VB > 正文

格式化数字

2007-04-10 源自: 网友评论 0 进入视频教程

  Formatting Numbers
Use Format$(value, "0.00") to get 2 decimal places. Combine this with the "@@@@@" formats to get right justified numbers. For example:
    Print Format$(Format$(123.45, "0.00"), "@@@@@@@@")
    Print Format$(Format$(3.4, "0.00"), "@@@@@@@@")
    Print Format$(Format$(12345.6, "0.00"), "@@@@@@@@")
produces the following list:
      123.45
        3.40
    12345.60

上一篇: 给Outlook的所有用户发送信件
下一篇:格式化输入。

评论  点击查看
 
开发频道推荐
开发热点文章