楼主: 夭妖
7340 5

【请教】input字符型转数字型 [推广有奖]

  • 0关注
  • 0粉丝

已卖:4份资源

博士生

40%

还不是VIP/贵宾

-

威望
0
论坛币
499 个
通用积分
0
学术水平
0 点
热心指数
0 点
信用等级
0 点
经验
9933 点
帖子
222
精华
0
在线时间
371 小时
注册时间
2008-3-7
最后登录
2021-5-5

楼主
夭妖 发表于 2010-1-21 13:49:25 |AI写论文

+2 论坛币
k人 参与回答

经管之家送您一份

应届毕业生专属福利!

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

经管之家联合CDA

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

感谢您参与论坛问题回答

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

+2 论坛币
现在我有一组数据,想要研究一下价格和各地区间的相关性,
然后需要把地区,用input语句,由字符型转成数字型,
具体如下:_COL4=input(_COL3,8.);
最终结果:_COL4一列呈缺失值,
所以,想请教各位大虾~应该怎么修改~
小女~先谢谢各位了~{:3_62:}
二维码

扫码加我 拉你入群

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

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

关键词:Input put 字符型 put语句 怎么修改 请教 数字 字符 Input

回帖推荐

jingju11 发表于6楼  查看完整内容

Agree with SASLOVIMe. If _COL3 is just quoted numbers, such as ’12.33’, there should be no problem of reading into numeric (truncated for the first 8 letters). If mixed with letters, such as ‘A123’, the result is missing. If you really want to solve the problem, you should present some example values of _COL3. By the way, your image is not very agreeable.

本帖被以下文库推荐

沙发
zhangchx 发表于 2010-1-21 14:02:14
语句后面少了个分号?

藤椅
夭妖 发表于 2010-1-21 14:06:29
回LS的~分号是我刚编辑帖子的时候忘记打了~
不好意思~不过还是非常谢谢~

板凳
saslovime 发表于 2010-1-21 16:42:15
你的_COL3的VALUE值是不是阿拉伯数字形式的呀,是就没错呀!
前后,左右

报纸
夭妖 发表于 2010-1-21 22:17:41
会LS的不是~是哈尔滨啊~这种汉字的~
是不是这样就不行了啊~继续请教~

地板
jingju11 发表于 2010-1-21 22:39:16
Agree with SASLOVIMe.
If _COL3 is just quoted numbers, such as ’12.33’, there should be no problem of reading into numeric (truncated for the first 8 letters). If mixed with letters, such as ‘A123’, the result is missing.
If you really want to solve the problem, you should present some example values of _COL3.

By the way, your image is not very agreeable.
已有 1 人评分经验 论坛币 收起 理由
bakoll + 3 + 3 精彩帖子

总评分: 经验 + 3  论坛币 + 3   查看全部评分

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

本版微信群
加好友,备注cda
拉您进交流群
GMT+8, 2025-12-27 01:08