{"id":3079,"date":"2019-10-20T15:18:01","date_gmt":"2019-10-20T06:18:01","guid":{"rendered":"https:\/\/www.sambuichi.jp\/?p=3079"},"modified":"2019-10-23T13:34:58","modified_gmt":"2019-10-23T04:34:58","slug":"issues-on-spec-2-1-jis-x-72062020","status":"publish","type":"post","link":"https:\/\/www.sambuichi.jp\/?p=3079&lang=en","title":{"rendered":"Issues on Spec 2.1 JIS X 7206:2020"},"content":{"rendered":"<p>Views: 103<\/p><h1>Issues on Spec 2.1<br \/>\nSpec 2.1 is NOT edited sufficiently clear and consistently<\/h1>\n<p style=\"text-align: right;\">21 October 2019<\/p>\n<p>SAMBUICHI Nobuyuki<br \/>\nXBRL Japan Advisor<br \/>\nRepresentative of JIS X 7206:2020 editorial working group<br \/>\nISO TC 295 Audit data services<br \/>\nHead of delegate Japanese Industrial Standards Committee<\/p>\n<h3>Additional PDF Files for presentation;<\/h3>\n<p><a href=\"https:\/\/www.sambuichi.jp\/wp-content\/uploads\/2019\/10\/XBRL_Japan_Spec_WG_2019-10-21B-1.pdf\"><b>Today&#8217;s presentation slides<\/b>(PDF 724KB)<\/a><br \/>\n<a href=\"https:\/\/www.sambuichi.jp\/wp-content\/uploads\/2019\/10\/4.6.3-7JIS_A.pdf\"><b>JIS X 7206:2020 4.6.3 ~ 4.6.7<\/b> (Translated into English)(PDF 93KB)<\/a><\/p>\n<h2>References<\/h2>\n<p>IETF RFC 2119<br \/>\n<b>IETF (Internet Engineering Task Force). &#8220;RFC 2119: Key words for use in RFCs to Indicate Requirement Levels&#8221;<\/b><br \/>\nScott Bradner.<br \/>\n(See <a href=\"http:\/\/www.ietf.org\/rfc\/rfc2119.txt\">http:\/\/www.ietf.org\/rfc\/rfc2119.txt<\/a>)<br \/>\nIEEE<br \/>\n<b>IEEE. &#8220;IEEE Standard for Floating Point Arithmetic, IEEE Std 754\u2122-2008&#8221;<\/b><br \/>\n(See http:\/\/ieeexplore.ieee.org\/xpl\/mostRecentIssue.jsp?punumber=4610933)<br \/>\nThis standard is equivalent to following ISO standard<br \/>\n<b>ISO\/IEC\/IEEE 60559:2011(en)<br \/>\nInformation technology \u2014 Microprocessor Systems \u2014 Floating-Point arithmetic<\/b><br \/>\n(see <a href=\"https:\/\/www.iso.org\/obp\/ui\/#iso:std:iso-iec-ieee:60559:ed-1:v1:en\">https:\/\/www.iso.org\/obp\/ui\/#iso:std:iso-iec-ieee:60559:ed-1:v1:en<\/a>)<br \/>\nISO 80000-1<br \/>\n<b>ISO 80000-1:2009<br \/>\nQuantities and units \u2014 Part 1: General<\/b><br \/>\n(see <a href=\"https:\/\/www.iso.org\/standard\/30669.html\">https:\/\/www.iso.org\/standard\/30669.html<\/a>)<\/p>\n<h2>Errata<\/h2>\n<p>74. Changed from inferring precision to inferring decimals<br \/>\n07 March 2011<br \/>\nSection 4.6.6, Section 4.10, Section 5.2.5.2<br \/>\n75. Changed rounding descriptions to IEEE standard recommendation<br \/>\n31 October 2011<br \/>\nSection 4.6.7.1, Section 4.6.7.2<\/p>\n<h2>Ambiguous definition for \u201cround\u201d and \u201ctruncate\u201d<\/h2>\n<h3>PREVIOUS RECOMMENDATION &#8211; 2003-12-31 + Corrected Errata &#8211; 2008-07-02<\/h3>\n<p>It is often necessary to round significant figures following a calculation. This is known as rounding. To round a number to n significant figures, discard all digits to the right of the nth place. This step is known as truncation. Then, if the left-most discarded digit is less than 5, leave the nth digit unchanged; if the left-most discarded digit is greater than or equal to 5, add 1 to the nth digit (propagating any carries to digits further to the left according to the normal rules of arithmetic and removing the final 0 if necessary). <\/p>\n<h3>CURRENT Recommendation 31 December 2003 with errata corrections to 20 February 2013<\/h3>\n<p>It is often necessary to round significant figures following a calculation. This is known as rounding [IEEE] [IEEE 4.3.1 Rounding-direction attributes to nearest, roundTiesToEven]. To round a number to n significant figures, discard all digits to the right of the nth place. This step is known as truncation. Then, if the original number is equally near two truncated numbers, the one with an even nth digit is chosen. <\/p>\n<h3>PROBLEM 1<\/h3>\n<p>We can not get equally near two truncated numbers with this description.<br \/>\nDiscarding all digits to the right of the nth place of original number results a single truncated number.<br \/>\nRequirement level is not clearly stated with statement is known as.<\/p>\n<h3>PROBLEM 2<\/h3>\n<p>IEEE Std. 754 is not general definition for rounding. It defines rounding for representing floating-point in binary format or decimal format in microprocessor. <\/p>\n<h2>Rounding of numbers by JIS X 7206:2020<\/h2>\n<p>Clear definition \u201cround\u201d and \u201ctruncate\u201d referencing to ISO 80000-1 Annex B<\/p>\n<p>&#8220;Rounding&#8221; and &#8220;Truncation&#8221; MUST be performed as specified in [ISO] (ISO80000-1, Annex B Rounding of numbers). Rounding means replacing the magnitude of an original number by another number called the rounded number, selected from the sequence of integral multiples of a chosen rounding range. [IEEE] (IEEE 4.3 Rounding-direction) lists the rounding-direction attribute affects all computational operations that might be inexact.<br \/>\n\u00a0<br \/>\nThe first rounding is \u201cRounding\u201d, and its rounding-direction is \u201croundTiesToEven\u201d.<br \/>\nIf there is only one integral multiple nearest the original number, then that is accepted as the rounded number.<br \/>\nIf there are two successive integral multiples equally near the original number. the even multiple is selected as the rounded number. This rule is of special advantage when treating. for example. series of measurements in such a way that the rounding errors are minimized.<br \/>\n\u00a0<br \/>\nThe second rounding is \u201cTruncate\u201d, and its rounding-direction is \u201croundTowardZzero\u201d. An integral multiple closest to and no greater in multitude than infinity precise result the original number is accepted as the truncated number.<br \/>\n\u00a0<br \/>\nRounding in more than one stage by the application of the rules given above may lead to errors. Therefore, the rounding MUST always be carried out in only one step.<br \/>\n\u00a0<br \/>\nEXAMPLE 12,254 should be rounded to 12,3 and not first to 12,25 and then to 12,2.<br \/>\n\u00a0<br \/>\nThe rules given above should be used only if no special criteria for the selection of the rounded number MUST be taken into account. For instance, in case where safety requirements or other limits MUST be respected, it is advisable to round only in one direction.<\/p>\n<p><a  href=\"https:\/\/www.sambuichi.jp\/wp-content\/uploads\/2019\/10\/795316b92fc766b0181f6fef074f03fa.png\" data-rel=\"lightbox-gallery-0\" data-rl_title=\"\u56f31\" data-rl_caption=\"\" title=\"\u56f31\"><br \/>\n<img decoding=\"async\" loading=\"lazy\" src=\"https:\/\/www.sambuichi.jp\/wp-content\/uploads\/2019\/10\/795316b92fc766b0181f6fef074f03fa-1024x551.png\" alt=\"\" width=\"1024\" height=\"551\" class=\"alignnone size-large wp-image-3066\" srcset=\"https:\/\/www.sambuichi.jp\/wp-content\/uploads\/2019\/10\/795316b92fc766b0181f6fef074f03fa-1024x551.png 1024w, https:\/\/www.sambuichi.jp\/wp-content\/uploads\/2019\/10\/795316b92fc766b0181f6fef074f03fa-300x161.png 300w, https:\/\/www.sambuichi.jp\/wp-content\/uploads\/2019\/10\/795316b92fc766b0181f6fef074f03fa-768x413.png 768w, https:\/\/www.sambuichi.jp\/wp-content\/uploads\/2019\/10\/795316b92fc766b0181f6fef074f03fa.png 1445w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><br \/>\n<\/a><\/p>\n<h2>JIS Z 7206:2010 V-Equal definition<\/h2>\n<p><a  href=\"https:\/\/www.sambuichi.jp\/wp-content\/uploads\/2019\/10\/2b530e80c7d0de90885e285c5d798063.png\" data-rel=\"lightbox-gallery-0\" data-rl_title=\"\u56f32\" data-rl_caption=\"\" title=\"\u56f32\"><br \/>\n<img decoding=\"async\" loading=\"lazy\" src=\"https:\/\/www.sambuichi.jp\/wp-content\/uploads\/2019\/10\/2b530e80c7d0de90885e285c5d798063-1024x552.png\" alt=\"\" width=\"1024\" height=\"552\" class=\"alignnone size-large wp-image-3068\" srcset=\"https:\/\/www.sambuichi.jp\/wp-content\/uploads\/2019\/10\/2b530e80c7d0de90885e285c5d798063-1024x552.png 1024w, https:\/\/www.sambuichi.jp\/wp-content\/uploads\/2019\/10\/2b530e80c7d0de90885e285c5d798063-300x162.png 300w, https:\/\/www.sambuichi.jp\/wp-content\/uploads\/2019\/10\/2b530e80c7d0de90885e285c5d798063-768x414.png 768w, https:\/\/www.sambuichi.jp\/wp-content\/uploads\/2019\/10\/2b530e80c7d0de90885e285c5d798063.png 1352w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><br \/>\n<\/a><\/p>\n<p><a  href=\"https:\/\/www.sambuichi.jp\/wp-content\/uploads\/2019\/10\/c8856789ec11ab8b1013037cef6929f9.png\" data-rel=\"lightbox-gallery-0\" data-rl_title=\"\u56f33\" data-rl_caption=\"\" title=\"\u56f33\"><br \/>\n<img decoding=\"async\" loading=\"lazy\" src=\"https:\/\/www.sambuichi.jp\/wp-content\/uploads\/2019\/10\/c8856789ec11ab8b1013037cef6929f9-1024x617.png\" alt=\"\" width=\"1024\" height=\"617\" class=\"alignnone size-large wp-image-3070\" srcset=\"https:\/\/www.sambuichi.jp\/wp-content\/uploads\/2019\/10\/c8856789ec11ab8b1013037cef6929f9-1024x617.png 1024w, https:\/\/www.sambuichi.jp\/wp-content\/uploads\/2019\/10\/c8856789ec11ab8b1013037cef6929f9-300x181.png 300w, https:\/\/www.sambuichi.jp\/wp-content\/uploads\/2019\/10\/c8856789ec11ab8b1013037cef6929f9-768x462.png 768w, https:\/\/www.sambuichi.jp\/wp-content\/uploads\/2019\/10\/c8856789ec11ab8b1013037cef6929f9.png 1352w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><br \/>\n<\/a><\/p>\n<h2>Inconsistency between example 11 and example 52<\/h2>\n<pre class=\"lang:default decode:true \" >&lt;a contextRef=\"c1\" unitRef=\"u1\" precision=\"2\"&gt;1559&lt;\/a&gt;\r\n&lt;b contextRef=\"c1\" unitRef=\"u1\" precision=\"3\"&gt;984.8&lt;\/b&gt;\r\n&lt;c contextRef=\"c1\" unitRef=\"u1\" decimals=\"1\"&gt;582.334973&lt;\/c&gt;<\/pre>\n<h3>4.6.4 The\u00a0@precision\u00a0attribute (optional)<\/h3>\n<p>TRUNCATE<br \/>\nIf a numeric fact has a\u00a0@precision\u00a0attribute that has the value &#8220;n&#8221; then it is correct to &#8220;n&#8221; significant figures (see\u00a0Section 4.6.1\u00a0for the normative definition of &#8216;correct to &#8220;n&#8221; significant figures\u2019).<br \/>\nAn application\u00a0SHOULD\u00a0ignore (i.e. replace with zeroes) any digits after the first &#8220;n&#8221; decimal digits, counting from the left, starting at the first non-zero digit in the lexical representation of any number for which the value of precision is specified or inferred to be\u00a0n.<\/p>\n<h3>Example 52. Calculations involving decimals and precision<\/h3>\n<p>ROUND<br \/>\nSuppose that the numeric item a is a summation for numeric items b and c (with weight 1.0) and there exists a context with id &#8216;c1&#8217; and unit with id &#8216;u1&#8217; in the instance so that the summation binds.<br \/>\nTo perform the calculation, first round 984.8 to precision 3 to give 985 and then round 582.334973 to the inferred precision 4 to give 582.3 resulting in a total of 1567.3. The total is then equal to the summation item after rounding to precision 2 (the precision of the summation item a) at 1600, so that this calculation is consistent.<\/p>\n<h4>Consuming application are required to handle inconsistent ways.<\/h4>\n<h4>The rounding shall always be carried out in only one step.<\/h4>\n<h2>Modify example 52 to carry out rounding in single step<\/h2>\n<h3>Example 52. Calculations involving decimals and precision<\/h3>\n<p>Suppose that the numeric item a is a summation for numeric items b and c (with weight 1.0) and there exists a context with id &#8216;c1&#8217; and unit with id &#8216;u1&#8217; in the instance so that the summation binds.<br \/>\nTo perform the calculation, first round 984.8 to precision 3 to give 985 and then round 582.334973 to the inferred precision 4 to give 582.3 resulting in a total of 1567.3. The total is then equal to the summation item after rounding to precision 2 (the precision of the summation item a) at 1600, so that this calculation is consistent.<\/p>\n<h3>JIS Z 7206:2020<\/h3>\n<p>Suppose that the numeric item a is a summation for numeric items b and c (with weight 1.0) and there exists a context with id &#8216;c1&#8217; and unit with id &#8216;u1&#8217; in the instance so that the summation binds.<br \/>\nTo perform the calculation, first add 984.8 and 582.334 973 to get 1567.13497, then check if the total is v-equal. The inferred decimals of the summation item a is -2 and 1559 correct to -2 decimal places is1600. The total 1567.13497 correct to -2 decimal places is also1600. These two values are not only both C-Equal and U-equal but also V-Equal, so that this calculation is consistent.<\/p>\n<h4>The rounding shall always be carried out in only one step. <\/h4>\n<h4>The final V-Equal test step.<\/h4>\n<h2>Calculation based on 4.6.4 vs JIS<\/h2>\n<p><\/a><a  href=\"https:\/\/www.sambuichi.jp\/wp-content\/uploads\/2019\/10\/3a4f695a458cb0ac0aceaa2eb13ac2dd.png\" data-rel=\"lightbox-gallery-0\" data-rl_title=\"\u56f34\" data-rl_caption=\"\" title=\"\u56f34\"><img decoding=\"async\" loading=\"lazy\" src=\"https:\/\/www.sambuichi.jp\/wp-content\/uploads\/2019\/10\/3a4f695a458cb0ac0aceaa2eb13ac2dd-1024x504.png\" alt=\"\" width=\"1024\" height=\"504\" class=\"alignnone size-large wp-image-3072\" srcset=\"https:\/\/www.sambuichi.jp\/wp-content\/uploads\/2019\/10\/3a4f695a458cb0ac0aceaa2eb13ac2dd-1024x504.png 1024w, https:\/\/www.sambuichi.jp\/wp-content\/uploads\/2019\/10\/3a4f695a458cb0ac0aceaa2eb13ac2dd-300x148.png 300w, https:\/\/www.sambuichi.jp\/wp-content\/uploads\/2019\/10\/3a4f695a458cb0ac0aceaa2eb13ac2dd-768x378.png 768w, https:\/\/www.sambuichi.jp\/wp-content\/uploads\/2019\/10\/3a4f695a458cb0ac0aceaa2eb13ac2dd.png 1468w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><\/p>\n<h4>Rounding in more than one stage by the application may lead to errors. <\/h4>\n<h4>Therefore, the rounding MUST always be carried out in only one step for V-Equal test.<\/h4>\n<p><a  href=\"https:\/\/www.sambuichi.jp\/wp-content\/uploads\/2019\/10\/ieee.png\" data-rel=\"lightbox-gallery-0\" data-rl_title=\"ieee\" data-rl_caption=\"\" title=\"ieee\"><img decoding=\"async\" loading=\"lazy\" src=\"https:\/\/www.sambuichi.jp\/wp-content\/uploads\/2019\/10\/ieee-1024x790.png\" alt=\"\" width=\"1024\" height=\"790\" class=\"alignnone size-large wp-image-3062\" srcset=\"https:\/\/www.sambuichi.jp\/wp-content\/uploads\/2019\/10\/ieee-1024x790.png 1024w, https:\/\/www.sambuichi.jp\/wp-content\/uploads\/2019\/10\/ieee-300x231.png 300w, https:\/\/www.sambuichi.jp\/wp-content\/uploads\/2019\/10\/ieee-768x592.png 768w, https:\/\/www.sambuichi.jp\/wp-content\/uploads\/2019\/10\/ieee.png 1477w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><\/p>\n<h1>IEEE Standard for Floating-Point Arithmetic<\/h1>\n<h2>4. Attributes and rounding<\/h2>\n<h3>4.1 Attribute specification<\/h3>\n<p>An attribute is logically associated with a program block to modify its numerical and exception semantics. A user can specify a constant value for an attribute parameter. Some attributes have the effect of an implicit parameter to most individual operations of this standard; language standards shall specify \u2015 rounding-direction attributes (see 4.3) and should specify \u2015 alternate exception handling attributes (see Clause 8). Other attributes change the mapping of language expressions into operations of this standard; language standards that permit more than one such mapping should provide support for: \u2015 preferredWidth attributes (see 10.3) \u2015 value-changing optimization attributes (see 10.4) \u2015 reproducibility attributes (see Clause 11). For attribute specification, the implementation shall provide language-defined means, such as compiler directives, to specify a constant value for the attribute parameter for the operations in a block; the scope of the attribute value is the block with which it is associated. Language standards shall provide for constant specification of the default and each specific value of the attribute.<\/p>\n<h3>4.2 Dynamic modes for attributes<\/h3>\n<p>Attributes in this standard shall be supported with the constant specification of 4.1. Particularly to support debugging, language standards should also support dynamic-mode specification of attributes. With dynamic-mode specification, a user can specify that the attribute parameter assumes the value of a dynamic-mode variable whose value might not be known until program execution. This standard does not specify the underlying implementation mechanisms for constant attributes or dynamic modes. For dynamic-mode specification, the implementation shall provide language-defined means to specify that the attribute parameter assumes the value of a dynamic-mode variable for the operations within the scope of the dynamic-mode specification in a block. The implementation initializes a dynamic-mode variable to the default value for the dynamic mode. Within its language-defined (dynamic) scope, changes to the value of a dynamic-mode variable are under the control of the user via the operations in 9.3.1 and 9.3.2. The following aspects of dynamic-mode variables are language-defined; language standards may explicitly defer the definitions to implementations: \u2015 The precedence of static attribute specifications and dynamic-mode assignments. \u2015 The effect of changing the value of the dynamic-mode variable in an asynchronous event, such as in another thread or signal handler. \u2015 Whether the value of the dynamic-mode variable can be determined by non-programmatic means, such as a debugger. NOTE\u2014A constant value for an attribute can be specified and meet the requirements of 4.1 by a dynamic mode specification with appropriate scope of that constant value. <\/p>\n<h3>4.3 Rounding-direction attributes<\/h3>\n<p>Rounding takes a number regarded as infinitely precise and, if necessary, modifies it to fit in the destination\u2019s format while signaling the inexact exception, underflow, or overflow when appropriate (see Clause 7). Except where stated otherwise, every operation shall be performed as if it first produced an intermediate result correct to infinite precision and with unbounded range, and then rounded that result according to one of the attributes in this clause. Except where stated otherwise, the rounding-direction attribute affects all computational operations that might be inexact. Inexact numeric floating-point results always have the same sign as the unrounded result. The rounding-direction attribute affects the signs of exact zero sums (see 6.3), and also affects the thresholds beyond which overflow (see 7.4) and underflow (see 7.5) are signaled. Implementations supporting both decimal and binary formats shall provide separate rounding-direction attributes for binary and decimal, the binary rounding direction and the decimal rounding direction. Operations returning results in a floating-point format shall use the rounding-direction attribute associated with the radix of the results. Operations converting from an operand in a floating-point format to a result in integer format or to an external character sequence (see 5.8 and 5.12) shall use the rounding-direction attribute associated with the radix of the operand. NaNs are not rounded (but see 6.2.3).<\/p>\n<h4>4.3.1 Rounding-direction attributes to nearest<\/h4>\n<p>In the following two rounding-direction attributes, an infinitely precise result with magnitude at least b<sup>emax<\/sup> \u00d7(b\u2212\u00bdb<sup>1\u2212p<\/sup> ) shall round to \u221e with no change in sign; here emax and p are determined by the destination format (see 3.3). With:<br \/>\n\u2015 <b>roundTiesToEven<\/b>, the floating-point number nearest to the infinitely precise result shall be delivered; if the two nearest floating-point numbers bracketing an unrepresentable infinitely precise result are equally near, the one with an even least significant digit shall be delivered; if that is not possible, the one larger in magnitude shall be delivered (this can happen for one-digit precision, possible with convertToDecimalCharacter for example, as when rounding 9.5 to one digit in which case both 9 and 1\u00d7101 have odd significands)<br \/>\n\u2015 <b>roundTiesToAway<\/b>, the floating-point number nearest to the infinitely precise result shall be delivered; if the two nearest floating-point numbers bracketing an unrepresentable infinitely precise result are equally near, the one with larger magnitude shall be delivered.<\/p>\n<h3>4.3.2 Directed rounding attributes<\/h3>\n<p>Three other user-selectable rounding-direction attributes are defined, the directed rounding attributes roundTowardPositive, roundTowardNegative, and roundTowardZero. With:<br \/>\n\u2015 <b>roundTowardPositive<\/b>, the result shall be the format\u2019s floating-point number (possibly +\u221e) closest to and no less than the infinitely precise result<br \/>\n\u2015 <b>roundTowardNegative<\/b>, the result shall be the format\u2019s floating-point number (possibly \u2212\u221e) closest to and no greater than the infinitely precise result<br \/>\n\u2015 <b>roundTowardZero<\/b>, the result shall be the format\u2019s floating-point number closest to and no greater in magnitude than the infinitely precise result.<br \/>\n\u00a0<\/p>\n<h3>4.3.3 Rounding attribute requirements<\/h3>\n<p>An implementation of this standard shall provide roundTiesToEven and the three directed rounding attributes. A decimal format implementation of this standard shall provide roundTiesToAway as a user selectable rounding-direction attribute. The rounding attribute roundTiesToAway is not required for a binary format implementation. The roundTiesToEven rounding-direction attribute shall be the default rounding-direction attribute for results in binary formats. The default rounding-direction attribute for results in decimal formats is language-defined but should be roundTiesToEven.<\/p>\n<p><a  href=\"https:\/\/www.sambuichi.jp\/wp-content\/uploads\/2019\/10\/iso80000-1.png\" data-rel=\"lightbox-gallery-0\" data-rl_title=\"iso80000-1\" data-rl_caption=\"\" title=\"iso80000-1\"><img decoding=\"async\" loading=\"lazy\" src=\"https:\/\/www.sambuichi.jp\/wp-content\/uploads\/2019\/10\/iso80000-1-1024x419.png\" alt=\"\" width=\"1024\" height=\"419\" class=\"alignnone size-large wp-image-3064\" srcset=\"https:\/\/www.sambuichi.jp\/wp-content\/uploads\/2019\/10\/iso80000-1-1024x419.png 1024w, https:\/\/www.sambuichi.jp\/wp-content\/uploads\/2019\/10\/iso80000-1-300x123.png 300w, https:\/\/www.sambuichi.jp\/wp-content\/uploads\/2019\/10\/iso80000-1-768x314.png 768w, https:\/\/www.sambuichi.jp\/wp-content\/uploads\/2019\/10\/iso80000-1.png 1500w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><\/p>\n<h1>ISO 80000-1:2009(E)<\/h1>\n<h2 style=\"text-align: right;\">Quantities and units &#8211; Part 1 General<\/h2>\n<h3 style=\"text-align: center;\">Annex B<\/h3>\n<h3 style=\"text-align: center;\">(normative)<\/h3>\n<h1 style=\"text-align: center;\">Rounding of numbers<\/p>\n<h1>\n<h4>B.1 Rounding means replacing the magnitude of a given number by another number called the rounded number, selected from the sequence of integral multiples of a chosen rounding range.<\/h4>\n<p>EXAMPLE 1<\/p>\n<table>\n<tbody>\n<tr>\n<td>rounding range:<\/td>\n<td>0,1<\/td>\n<\/tr>\n<tr>\n<td>integral multiple:<\/td>\n<td>2,1; 12,2; 12,3; 12,4; etc.<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>EXAMPLE 2<\/p>\n<table>\n<tbody>\n<tr>\n<td>rounding range:<\/td>\n<td>10<\/td>\n<\/tr>\n<tr>\n<td>integral multiple:<\/td>\n<td>1 210; 1 220; 1 230; 1 240; etc.<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h4>B.2 If there is only one integral multiple nearest the given number, then that is accepted as the rounded number.<\/h4>\n<p>EXAMPLE 3<\/p>\n<table>\n<tbody>\n<tr>\n<td>rounding range:<\/d><\/p>\n<td>0,1<\/td>\n<\/tr>\n<tr>\n<td>given number<\/d><\/p>\n<td>rounded number<\/td>\n<\/tr>\n<tr>\n<td>12,233<\/td>\n<td>12,2<\/td>\n<\/tr>\n<tr>\n<td>12,251<\/td>\n<td>12,3<\/td>\n<\/tr>\n<tr>\n<td>12,275<\/td>\n<td>12,3<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>EXAMPLE 4<\/p>\n<table>\n<tbody>\n<tr>\n<td>rounding range:<\/d><\/p>\n<td>10<\/td>\n<\/tr>\n<tr>\n<td>given number<\/d><\/p>\n<td>rounded number<\/td>\n<\/tr>\n<tr>\n<td>1 223,3<\/td>\n<td>1 220<\/td>\n<\/tr>\n<tr>\n<td>1 225,1<\/td>\n<td>1 230<\/td>\n<\/tr>\n<tr>\n<td>1 227,5<\/td>\n<td>1 230<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h4>B.3 If there are two successive integral multiples equally near the given number, two different rules are in use.<\/h4>\n<p>Rule A: The even multiple is selected as the rounded number.<br \/>\nEXAMPLE 5<\/p>\n<table>\n<tbody>\n<tr>\n<td>rounding range:<\/td>\n<td>0,1<\/td>\n<\/tr>\n<tr>\n<td>given number<\/td>\n<td>rounded number<\/td>\n<\/tr>\n<tr>\n<td>12,25<\/td>\n<td>12,2<\/td>\n<\/tr>\n<tr>\n<td>12,35<\/td>\n<td>12,4<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>EXAMPLE 6<\/p>\n<table>\n<tbody>\n<tr>\n<td>rounding range:<\/td>\n<td>10<\/td>\n<\/tr>\n<tr>\n<td>given number<\/td>\n<td>rounded number<\/td>\n<\/tr>\n<tr>\n<td>1 225,0<\/td>\n<td>1 220<\/td>\n<\/tr>\n<tr>\n<td>1 235,0<\/td>\n<td>1 240<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>Rule B: The greater in multitude is selected as the rounded number.<\/p>\n<p>EXAMPLE 7<\/p>\n<table>\n<tbody>\n<tr>\n<td>rounding range:<\/td>\n<td>0,1<\/td>\n<\/tr>\n<tr>\n<td>given number<\/td>\n<td>rounded number<\/td>\n<\/tr>\n<tr>\n<td>12,25<\/td>\n<td>12,3<\/td>\n<\/tr>\n<tr>\n<td>12,35<\/td>\n<td>12,4<\/td>\n<\/tr>\n<tr>\n<td>-12,25<\/td>\n<td>-12,3<\/td>\n<\/tr>\n<tr>\n<td>-12,35<\/td>\n<td>-12,4<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>EXAMPLE 8<\/p>\n<table>\n<tbody>\n<tr>\n<td>rounding range:<\/td>\n<td>10<\/td>\n<\/tr>\n<tr>\n<td>given number<\/td>\n<td>rounded number<\/td>\n<\/tr>\n<tr>\n<td>1 225,0<\/td>\n<td>1 230<\/td>\n<\/tr>\n<tr>\n<td>1 235,0<\/td>\n<td>1 240<\/td>\n<\/tr>\n<tr>\n<td>-1 225,0<\/td>\n<td>-1 230<\/td>\n<\/tr>\n<tr>\n<td>-1 235,0<\/td>\n<td>-1 240<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>Rule A is generally preferable and of special advantage when treating, for example, series of measurements in such a way that the rounding errors are minimized.<br \/>\nRule B is sometimes used in computers.<\/p>\n<h4>B.4 Rounding in more than one stage by the application of the rules given above may lead to errors. Therefore, the rounding shall always be carried out in only one step.<\/h4>\n<p>EXAMPLE 12,254 should be rounded to 12,3 and not first to 12,25 and then to 12,2.<\/p>\n<h4>B.5 The rules given above should be used only if no special criteria for the selection of the rounded number have to be taken into account. For instance, in case where safety requirements or other limits have to be respected, it is advisable to round only in one direction.<\/h4>\n<h4>B.6 The rounding range should always be indicated.<\/h4>\n","protected":false},"excerpt":{"rendered":"<p>Views: 103Issues on Spec 2.1 Spec 2.1 is NOT edited sufficiently clear and consistently 21 October 2019 SAMBUI [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":3067,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[17],"tags":[],"_links":{"self":[{"href":"https:\/\/www.sambuichi.jp\/index.php?rest_route=\/wp\/v2\/posts\/3079"}],"collection":[{"href":"https:\/\/www.sambuichi.jp\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.sambuichi.jp\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.sambuichi.jp\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.sambuichi.jp\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=3079"}],"version-history":[{"count":26,"href":"https:\/\/www.sambuichi.jp\/index.php?rest_route=\/wp\/v2\/posts\/3079\/revisions"}],"predecessor-version":[{"id":3149,"href":"https:\/\/www.sambuichi.jp\/index.php?rest_route=\/wp\/v2\/posts\/3079\/revisions\/3149"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.sambuichi.jp\/index.php?rest_route=\/wp\/v2\/media\/3067"}],"wp:attachment":[{"href":"https:\/\/www.sambuichi.jp\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=3079"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.sambuichi.jp\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=3079"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.sambuichi.jp\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=3079"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}