Chinaunix首页 | 论坛 | 博客
  • 博客访问: 5376322
  • 博文数量: 1144
  • 博客积分: 11974
  • 博客等级: 上将
  • 技术积分: 12312
  • 用 户 组: 普通用户
  • 注册时间: 2005-04-13 20:06
文章存档

2017年(2)

2016年(14)

2015年(10)

2014年(28)

2013年(23)

2012年(29)

2011年(53)

2010年(86)

2009年(83)

2008年(43)

2007年(153)

2006年(575)

2005年(45)

分类: LINUX

2006-07-21 17:25:21

The 1992 POSIX standard introduced the concept of a numeric string, which is simply a string that looks like a number—for example, " +2". This concept is used for determining the type of a variable. The type of the variable is important because the types of two variables determine how they are compared. In gawk, variable typing follows these rules:

    * A numeric constant or the result of a numeric operation has the numeric attribute.
    * A string constant or the result of a string operation has the string attribute.
    * Fields, getline input, FILENAME, ARGV elements, ENVIRON elements, and the elements of an array created by split that are numeric strings have the strnum attribute. Otherwise, they have the string attribute. Uninitialized variables also have the strnum attribute.
    * Attributes propagate across assignments but are not changed by any use.
阅读(2053) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~