http://bugs.winehq.org/show_bug.cgi?id=18073
Damjan Jovanovic damjan.jov@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Difficulty|--- |Days Summary|VB6 Format decimal error |VarFormat formats decimals | |wrongly
--- Comment #2 from Damjan Jovanovic damjan.jov@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.