Microsoft Knowledge Base Article
This article contents is Microsoft Copyrighted material.
©2005-©2007 Microsoft Corporation. All rights reserved.
Terms
of Use |
Trademarks
Article ID: 312445 - Last Review: September 23, 2005 - Revision: 3.1
ConvertMoneyStringToNumber of DataFunctions_4_0 Returns Incorrect Value
This article was previously published under Q312445
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.
To 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://kbalertz.com/Feedback.aspx?kbNumber=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
Microsoft 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).
The following is a Microsoft Visual Basic code example for accessing the
ConvertMoneyStringToNumber method:
Public Function ConvertOneUSDollar() As Double
Dim objDataFunc As MSCSAspHelpLib.DataFunctions_4_0
Set objDataFunc = New MSCSAspHelpLib.DataFunctions_4_0
ConvertOneUSDollar = objDataFunc.ConvertMoneyStringToNumber("1", "1033")
End Function
APPLIES TO
- Microsoft Commerce Server 2000 Service Pack 1
- Microsoft Commerce Server 2000 Service Pack 2
- Microsoft BizTalk Server 2000 Standard Edition
- Microsoft BizTalk Server 2000 Service Pack 1a
| kbbug kbfix kbcommserv2000sp3fix kbqfe kbcommserv2000presp3fix kbhotfixserver KB312445 |
Community Feedback System
Very often, it takes hours to solve a problem. Very often, you've looked high
and low, and have tried a lot of solutions. When you finally found it, chances
are, it was because someone else helped you. Here's your chance to give back.
Use our community feedback tool to let others know what worked for you and what
didn't.
Please also understand that the community feedback system is not warranted to be
correct, it's simply a system that we've built to let people try and help each
other. If something in a feedback response doesn't make sense to you, or you're
not comfortable making changes that the feedback talks about (like registry
edits), please consult a professional.
Thank you for using kbAlertz.com Feedback System.
-- Scott Cate