Article ID: 312445 - Last Review: September 23, 2005 - Revision: 3.1 ConvertMoneyStringToNumber of DataFunctions_4_0 Returns Incorrect ValueThis article was previously published under Q312445 SYMPTOMS
The ConvertMoneyStringToNumber method of the DataFunctions_4_0 component (included with Commerce Server 2000 and BizTalk Server 2000) returns values in the base monetary unit for a given locale. Therefore, if a value is given in dollars, ConvertMoneyStringToNumber returns the number of cents for the dollar value. However, there may be times when ConvertMoneyStringToNumber converts the value incorrectly, losing one cent. For example, ConvertMoneyStringToNumber converts $1.50 to 149 cents instead of 150 cents.
RESOLUTIONTo resolve this problem, obtain the latest service pack for Commerce Server 2000. For additional information, click the following article number to view the article in the
Microsoft Knowledge Base:
297216
(http://support.microsoft.com/kb/297216/EN-US/
)
INFO: How to Obtain the Latest Commerce Server 2000 Service Pack
The English version of this fix should have the following file attributes or later:
Date Time Version Size File name ----------------------------------------------------------- 14-Dec-2001 12:17:51 4.0.3022.0 176,400 Mscsasphelp.dll STATUSMicrosoft has confirmed that this is a problem in the Microsoft products that are listed at the beginning of this article. This problem was first corrected in Commerce Server 2000 Service Pack 3 (SP3). MORE INFORMATION
The following is a Microsoft Visual Basic code example for accessing the ConvertMoneyStringToNumber method:
| Article Translations
|

Back to the top
