To comment on the following update, log in, then open the issue:
http://www.openoffice.org/issues/show_bug.cgi?id=48630
User ab changed the following:
What |Old value |New value
================================================================================
Status|REOPENED |RESOLVED
--------------------------------------------------------------------------------
Priority|P3 |P4
--------------------------------------------------------------------------------
Resolution| |WONTFIX
--------------------------------------------------------------------------------
Target milestone|OOo 2.0.1 |OOo Later
--------------------------------------------------------------------------------
------- Additional comments from [EMAIL PROTECTED] Fri Jun 3 00:41:40 -0700
2005 -------
It's not that simple. Nobody just copies an internal buffer to display it. To
do that a conversion from binary double format to ASCII has to be done.
And that's only one of the places that can cause such runding problems:
- It can be caused by converting ASCII to number
- It can be caused by converting number to ASCII
- It can be caused by arithmetic operations itself
With no algorithm you can guarantee 100% correct results for all numbers.
The Basic programmers - and also programmers in any other programming
language - have to car about displaying numerical results properly. And it's
no problem, just use
MsgBox(Round(a, 2))
and everything looks fine.
Problems like this cannot be solved in general. And as I already wrote: VB
has exactly the same problem. If it was so simple to fix as you've suggested
don't you think they would have done it?
By the way: I tried your example in a StarOffice 5.2 and the same "wrong"
result is displayed. So that's by far no regression. But I don't consider it to
be a real bug anyway.
-> P4 , -> OOo later , -> WONTFIX, but I keep it open for now.
---------------------------------------------------------------------
Please do not reply to this automatically generated notification from
Issue Tracker. Please log onto the website and enter your comments.
http://qa.openoffice.org/issue_handling/project_issues.html#notification
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]