BS 6727-1987 Specification for representation of numerical values in character strings for information interchange《信息交换用字符串的数值表述规范》.pdf
《BS 6727-1987 Specification for representation of numerical values in character strings for information interchange《信息交换用字符串的数值表述规范》.pdf》由会员分享,可在线阅读,更多相关《BS 6727-1987 Specification for representation of numerical values in character strings for information interchange《信息交换用字符串的数值表述规范》.pdf(18页珍藏版)》请在麦多课文档分享上搜索。
1、BRITISH STANDARD BS 6727:1987 ISO 6093:1985 Specification for Representation of numerical values in character strings for information interchange ISO title: Information processing Representation of numerical values in character strings for information interchange UDC 681.327.041:003.35BS 6727:1987 T
2、his British Standard, having been prepared under the directionof the Information Systems Technology Standards Committee, was published underthe authority of the Board ofBSI and comes into effect on 30April1987 BSI 12-1999 The following BSI references relate to the work on this standard: Committee re
3、ference IST/11 Draft for comment 84/61094 DC ISBN 0 580 15303 7 Committees responsible for this British Standard The preparation of this British Standard was entrusted by the Information Systems Technology Standards Committee (IST/-) to Technical Committee IST/11 upon which the following bodies were
4、 represented: Association for Payment Clearing Services British Computer Society Ltd. British Telecommunications plc Business Equipment and Information Technology Association Local Authorities Organization Amendments issued since publication Amd. No. Date of issue CommentsBS6727:1987 BSI 12-1999 i C
5、ontents Page Committees responsible Inside front cover National foreword ii 1 Scope and field of application 1 2 Conformance 1 3 References 1 4 Definitions 1 5 Character set 1 6 First numerical representation (NR1) 2 7 Second numerical representation (NR2) 2 8 Third numerical representation (NR3) 3
6、Annex A Method of syntax specification 6 Annex B Use of the character COMMA as decimal mark 6 Annex C Application to programming languages 6 Table 1 Examples of NR1 2 Table 2 Examples of NR2 3 Table 3 Examples of NR3 4 Table 4 Code table 5 Table 5 Examples of the application of this International St
7、andard to COBOL PICTURE character strings 7 Table 6 Examples of the application of this International Standard to the edit descriptors and sign control in the programming languageFORTRAN 8 Table 7 Examples of the application of this International Standard to FORMAT character strings in the programmi
8、ng language PL/I 9 Table 8 Examples of the application of this International Standard to PICTURE character strings in the programming language PL/I 10 Table 9 Examples of the application of this International Standard to field-width parameters in the programming language PASCAL 11 Publications refer
9、red to Inside back coverBS 6727:1987 ii BSI 12-1999 National foreword This British Standard has been prepared under the direction of the Information Systems Technology Standards Committee and is identical with ISO 6093:1985 “Information processing Representation of numerical values in character stri
10、ngs for information interchange”, published by the International Organization for Standardization (ISO). Terminology and conventions. The text of the International Standard has been approved as suitable for publication as a British Standard without deviation. Some terminology and certain conventions
11、 are not identical with thoseused in British Standards; attention is drawn especially to the following. The comma has been used as a decimal marker. In British Standards it is current practice to use a full point on the baseline as the decimal marker. Wherever the words “International Standard” appe
12、ar, referring to this standard, they should be read as “British Standard”. ISO 2022 is listed in clause 3 for information only. ISO2022:1986 is being implemented in the UK as an identical British Standard. NOTEIn C.3.5, line 1, “there has not be” should be read as “there has to be”. In 4.3, line 2,
13、“an” should be read as “a”. In Annex B, paragraph 3, line 4, “programing” should be read as “programming”. A British Standard does not purport to include all the necessary provisions of a contract. Users of British Standards are responsible for their correct application. Compliance with a British St
14、andard does not of itself confer immunity from legal obligations. Cross-references International Standard Corresponding British Standard ISO 4873:1986 BS 6006:1987 Specification for structure and rules forimplementation for United Kingdom 8-bit coded character set (Identical) a ISO 646:1983 BS 4730:
15、1985 Specification for UK 7-bit coded characterset (Identical exercising national options) a In preparation as a revision of BS 6006:1980. Summary of pages This document comprises a front cover, an inside front cover, pagesi andii, pages1 to12, an inside back cover and a back cover. This standard ha
16、s been updated (see copyright date) and may have had amendments incorporated. This will be indicated in the amendment table on the inside front cover.BS6727:1987 BSI 12-1999 1 1 Scope and field of application This International Standard specifies three presentations of numerical values, which are re
17、presented in character strings in a form readableby machine, for use in interchange between data processing systems. This International Standard also provides guidance fordevelopers of programming language standards andimplementors of programming products. Theserepresentations are recognizable by hu
18、mans, and thus may be useful in communication between humans. The base of representation is 10. This International Standard applies only to numerical values consisting of a finite number of digits with or without the decimal mark. It does not specify the mechanism to communicate the accuracy of the
19、number being represented or the method of delimiting the numerical representations or the organization of the numerical representations into larger aggregates. 2 Conformance A representation of a numerical value is in conformance with this International Standard if it is one of the three representat
20、ions specified herein. A conformance statement shall identify the representation and, where applicable, specify whether COMMA or FULL STOP is used as the decimal mark. In the absence of such a statement, the FULL STOP is deemed to be the decimal mark. 3 References ISO 646, Information processing ISO
21、 7-bit coded character set for information interchange. ISO 2022, Information processing ISO 7-bit and8-bit coded character sets Code extension techniques. ISO 4873, Information processing 8-bit code for information interchange Structure and rules for implementation. 4 Definitions For the purpose of
22、 this International Standard the following definitions apply. 4.1 decimal mark the character that separates the digits forming the integral part of a number from those forming the fractional part 4.2 field a continuous string of character positions on a data carrier 4.3 field description the set of
23、characteristics possessed by the field to ensure that its contents have an unique numerical interpretation to the interchange parties. For each field within a set of interchanged data the field description is specified in documentation associated with the interchange agreement between the parties. T
24、he field description includes the specification of the length of the field 4.4 length of a field the number of character positions of a field 4.5 positional notation a numeration system in which a real number is represented by a string of characters in such a way that the value contributed by a char
- 1.请仔细阅读文档,确保文档完整性,对于不预览、不比对内容而直接下载带来的问题本站不予受理。
- 2.下载的文档,不会出现我们的网址水印。
- 3、该文档所得收入(下载+内容+预览)归上传者、原创作者;如果您是本文档原作者,请点此认领!既往收益都归您。
下载文档到电脑,查找使用更方便
10000 积分 0人已下载
下载 | 加入VIP,交流精品资源 |
- 配套讲稿:
如PPT文件的首页显示word图标,表示该PPT已包含配套word讲稿。双击word图标可打开word文档。
- 特殊限制:
部分文档作品中含有的国旗、国徽等图片,仅作为作品整体效果示例展示,禁止商用。设计者仅对作品中独创性部分享有著作权。
- 关 键 词:
- BS67271987SPECIFICATIONFORREPRESENTATIONOFNUMERICALVALUESINCHARACTERSTRINGSFORINFORMATIONINTERCHANGE

链接地址:http://www.mydoc123.com/p-546209.html