全部版块 我的主页
论坛 计量经济学与统计论坛 五区 计量经济学与统计软件 Stata专版
11218 3
2010-07-08
请问大家:format a %05.0g 与 format a %05.0f有什么区别?

分别显示的结果
    a      a
    1  00001
    2  00002
    3  00003
    4  00004
    5  00005
二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

全部回复
2015-1-16 19:45:40

              %#.#g           general                  %9.0g
              %#.#f           fixed                    %9.2f
              %#.#e           exponential              %10.7e
              %21x            hexadecimal              %21x
              %16H            binary, hilo             %16H
              %16L            binary, lohi             %16L
              %8H             binary, hilo             %8H
              %8L             binary, lohi             %8L
二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

2015-5-31 19:53:05
crystal8832 发表于 2015-1-16 19:45
%#.#g           general                  %9.0g
              %#.#f           fixed  ...
可以解释一下这些式子吗?
二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

2015-7-24 10:05:58
看看Stata的帮助文件吧,或者直接输入
·help format        //查看format命令的使用,详情查看其中的Remarks

* Remarks are presented under the following headings:

        The %f format
        The %fc format
        The %g format
        The %gc format
        The %e format
        The %21x format
        The %16H and %16L formats
        The %8H and %8L formats
        The %t format
        The %s format
        Examples
附件列表
捕获.PNG

原图尺寸 95.37 KB

Source: help of Stata

Source: help of Stata

二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

相关推荐
栏目导航
热门文章
推荐文章

说点什么

分享

扫码加好友,拉您进群
各岗位、行业、专业交流群