楼主: ftn1022
11282 3

[数据管理求助] 关于 display format 问题 [推广有奖]

  • 0关注
  • 0粉丝

初中生

57%

还不是VIP/贵宾

-

威望
0
论坛币
0 个
通用积分
0
学术水平
0 点
热心指数
0 点
信用等级
0 点
经验
73 点
帖子
14
精华
0
在线时间
13 小时
注册时间
2010-7-5
最后登录
2010-7-29

楼主
ftn1022 发表于 2010-7-8 14:46:38 |AI写论文

+2 论坛币
k人 参与回答

经管之家送您一份

应届毕业生专属福利!

求职就业群
赵安豆老师微信:zhaoandou666

经管之家联合CDA

送您一个全额奖学金名额~ !

感谢您参与论坛问题回答

经管之家送您两个论坛币!

+2 论坛币
请问大家:format a %05.0g 与 format a %05.0f有什么区别?

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

扫码加我 拉你入群

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

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

关键词:Display format FORMA disp play display

沙发
crystal8832 学生认证  发表于 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
已有 1 人评分论坛币 学术水平 热心指数 收起 理由
SpencerMeng + 10 + 1 + 1 观点有启发

总评分: 论坛币 + 10  学术水平 + 1  热心指数 + 1   查看全部评分

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

板凳
vegetable03 发表于 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

您需要登录后才可以回帖 登录 | 我要注册

本版微信群
加好友,备注jltj
拉您入交流群
GMT+8, 2025-12-22 14:28