[Bug 18073] VarFormat formats decimals wrongly

wine-bugs at winehq.org wine-bugs at winehq.org
Mon May 11 15:18:20 CDT 2009


http://bugs.winehq.org/show_bug.cgi?id=18073


Damjan Jovanovic <damjan.jov at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Difficulty|---                         |Days
            Summary|VB6 Format decimal error    |VarFormat formats decimals
                   |                            |wrongly




--- Comment #2 from Damjan Jovanovic <damjan.jov at gmail.com>  2009-05-11 15:18:19 ---
There are at least 3 problems I see:
1. When rounding a continuous sequence of digits that don't terminate before
the first digit (eg. 999^-4 to 2 decimal places), the have_int variable is
incremented, instead of the exponent variable.
2. Even with 1 fixed, the exponent is ignored when printing the digits before
the decimal place, so we get no digits or wrong digits (0.9 + #.### = .900,
0.09999 + #.### = 1.000). (There's some variable called pad that might be the
'exponent' before the decimal point?)
3. The trailing zeroes should be discarded but aren't.


-- 
Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email
Do not reply to this email, post in Bugzilla using the
above URL to reply.
------- You are receiving this mail because: -------
You are watching all bug changes.



More information about the wine-bugs mailing list