Issue 2368: Clearer information describing different rounding types is needed (currency-rtf) Source: (, ) Nature: Revision Severity: Summary: Summary: RoundingType.ROUND_DOWN – The textual description needs to be far more explicit and/or include examples for both positive and negative numbers. Round toward zero? Is the rounding digit truly ignored? e.g. Let the internal precision be two. Resolution: resolved in Currency 2 RTF Revised Text: : From Issue 2268 the text clearly specified that the rounding digit will be ignored, however a few examples would be good to show. Revised Text: In section 2.3.4 After the bulleted list, add the following: Examples: ROUNDING_DIGIT = 5 INTERNAL_PRECISION = 2 ROUND_DOWN(-1.239) produces -1.23 ROUND_DOWN(-1.234) produces -1.23 ROUND_DOWN(1.230) produces 1.23 ROUND_DOWN(1.239) produces 1.23 ROUND_UP(-1.239) produces -1.24 ROUND_UP(-1.234) produces -1.23 ROUND_UP(1.230) produces 1.23 ROUND_UP(1.239) produces 1.24 ROUND_FLOOR(-1.239) produces -1.24 ROUND_FLOOR(-1.230) produces -1.23 ROUND_FLOOR(1.230) produces 1.23 ROUND_FLOOR(1.239) produces 1.23 ROUND_CEILING(-1.239) produces -1.23 ROUND_CEILING(-1.234) produces -1.23 ROUND_CEILING(1.230) produces 1.23 ROUND_CEILING(1.239) produces 1.24 Actions taken: January 11, 1999: received issue May 4, 2000: closed issue Discussion: Discussion: RoundingType.ROUND_DOWN - The textual description needs to be far more explicit and/or include examples for both positive and negative numbers. Round toward zero? Is the rounding digit truly ignored? e.g. Let the internal precision be two. Thus: ROUND_DOWN(-2.135) yields -2.13 ? ROUND_DOWN(2.135) yields 2.13 ? RoundingType.ROUND_UP - The textual description needs to be far more explicit and/or include examples for both positive and negative numbers. Round away from zero? e.g. Let the rounding digit be 5, with an internal precision of 2. Thus: ROUND_UP(-2.135) yields -2.14 ? ROUND_UP(2.135) yields 2.14 ? RoundingType.ROUND_FLOOR - The textual description needs to be far more explicit and/or include examples for both positive and negative numbers. Round toward negative infinity? e.g. Let the rounding digit be 5, with an internal precision of 2. Thus: ROUND_FLOOR(-2.135) yields -2.14 ? ROUND_FLOOR(2.135) yields 2.13 ? RoundingType.ROUND_CEILING - The textual description needs to be far more explicit and/or include examples for both positive and negative numbers. Round toward positive infinity? e.g. Let the rounding digit be 5, with an internal precision of 2. Thus: ROUND_CEILING(-2.135) yields -2.13 ? ROUND_CEILING(2.135) yields 2.14 ? RoundingType.DONT_ROUND - DO_NOT_ROUND would be more explicit and prohibit confusion as the contraction might cause some confusion. End of Annotations:===== Return-Path: From: Robert_Mickley@CYBORG.COM X-Lotus-FromDomain: CYBORG@CYBORG_NET To: issues@omg.org cc: Robert_Mickley@CYBORG.COM, Amy_Griffis@CYBORG.COM Date: Mon, 11 Jan 1999 21:28:52 -0700 Subject: Currency RTF Issues Content-Disposition: inline Today is the deadline for comments for the Currency RTF. Below is an itemized list of additions to that list. Issue Title: Clearer information describing the different rounding types is needed Issue Type: Text Revision Issue Description: RoundingType.ROUND_DOWN egative numbers. Round toward zero? Is the rounding digit truly ignored? e.g. Let the internal precision be two. Thus: ROUND_DOWN(iption needs to be far more explicit and/or include examples for both positive and negative numbers. Round away from zero? e.g. Let the rounding digit be 5, with an internal precision of 2. Thus: ROUND_UP(UP(2.135) yields 2.14 ? RoundingType.ROUND_FLOOR ecision of 2. Thus: ROUND_FLOOR(-2.135) yields 2.14 ? ROUND_FLOOR(2.135) yields 2.13 ? RoundingType.ROUND_CEILING - The textual description needs to be far more explicit and/or include examples for both positive and negative numbers. Round toward positive infinity? e.g. Let the rounding digit be 5, with an internal precision of 2. Thus: ROUND_CEILING(-2.135) yields xplicit and prohibit confusion as the contraction might cause some confusion.