This function is ambiguously defined. Specifically we need to know how many decimal digits we need to look at to determine the numerator of the fraction. The example given DOLLARDE(1.02,16) = 1+ 2/16. But what about, after a serious amount of calculations and in the presence of accumulated floating point error we have DOLLARDE(1.020000001, 16) Is this now 1 + 20000001/16 or 1,250,001 Also the definition is worded incorrectly. The first parameter is not "a number expressed as a fraction." It is "a number interpreted as a fraction".

Clarify how this function works

page 2619, line 28 Part 4, Section 3.17.7.95 DOLLARDE

te

Proposed Disposition of DIS 29500 Comment FR-0519 (Modified: 2008-01-13) We agree that the definition is ambiguous and that the wording is incorrect. We also agree that the purpose of the function should be moved out of the note and into the normative material. We propose the following changes to Part 4, §3.17.7.95, page 2,619, lines 29­30, and page 2,620 in the table: 3.17.7.95 DOLLARDE Syntax: DOLLARDE ( fractional-dollar , fraction ) Description: Converts a dollar price expressed as a fraction into a dollar price expressed as a decimal number. [Note: This function is used to convert fractional dollar numbers, such as securities prices, to decimal numbers. end note] Converts a fractional dollar price into a dollar price expressed as a decimal number[Note: Fractional dollar numbers are sometimes used for securities prices. end note] The fractional part of fractional-dollar is scaled to match the magnitude of fraction by moving the decimal place right by the number of digits in fraction. The fractional-dollar m.n is computed into a decimal dollar value as m + i, where i is an intermediate result equal to (((0.n)*(10 x ))/fraction), and x is the base 10 log of fraction, rounded up to the nearest whole number. [Example: Given a fractional-dollar value of 1.02 and a fraction value of 16, the fractional part of fractional-dollar is multiplied by 100, giving a value of 2 to be divided by fraction before being added to the integral part of fractional-dollar, yielding a decimal price of 1.125. end example] Arguments: Name Type Description fractional-dollar number The number expressed as a fraction. The number to be interpreted as a fractional dollar price. fraction number The integer to use in the denominator of the fraction. [Example: A fractional-dollar value of m.n means m + n/fraction dollars. end example] Similar Comments: CL-0192 , CO-0183 , GB-0397 , US-0194

Tag and Go

No Comments

Sorry, the comment form is closed at this time.

  • Argentina (1)
  • Australia (30)
  • Austria (1)
  • Belgium (1)
  • Brazil (64)
  • Bulgaria (3)
  • Canada (79)
  • Chile (217)
  • China (1)
  • Colombia (237)
  • Czech Republic (75)
  • Denmark (168)
  • Ecma (76)
  • Ecuador (1)
  • Finland (15)
  • France (592)
  • Germany (162)
  • Ghana (12)
  • Greece (113)
  • India (82)
  • Iran (58)
  • Ireland (12)
  • Israel (33)
  • Italy (2)
  • Japan (82)
  • Jordan (1)
  • Kenya (81)
  • Malaysia (23)
  • Malta (5)
  • Mexico (7)
  • New Zealand (54)
  • Norway (12)
  • Peru (10)
  • Philippines (7)
  • Poland (4)
  • Portugal (118)
  • Singapore (2)
  • South Africa (17)
  • South Korea (25)
  • Spain (1)
  • Switzerland (19)
  • Thailand (1)
  • Tunisia (3)
  • Turkey (1)
  • UK (635)
  • Uruguay (18)
  • USA (288)
  • Venezuela (73)