Issue 20704 - Currency type generates error on multiplication and division
Summary: Currency type generates error on multiplication and division
Status: CLOSED FIXED
Alias: None
Product: udk
Classification: Code
Component: code (show other issues)
Version: OOo 1.1 RC5
Hardware: PC Windows 2000
: P3 Trivial with 2 votes (vote)
Target Milestone: OOo 2.0
Assignee: ab
QA Contact: issues@api
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-10-04 15:21 UTC by maison.godard
Modified: 2010-11-10 21:31 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Latest Confirmation in: ---
Developer Difficulty: ---


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description maison.godard 2003-10-04 15:21:23 UTC
Hi,

Trying to migrate VBA code to OOBasic, Currency type seems not to be fully 
supported

  Sub Main
  Dim A as currency
  ' Dim B as double
  Dim B as currency
  Dim C as currency
  A=12.03
  B=3.0
  C= A/B   ' or A+B or A-B or A*B
  Print C
  End Sub

A+B works with B currency or double
A-B works with B currency or double
A/B gives 0.0000 without error message, B currency or double
A*B error message: Incompatible data type

Laurent
Comment 1 ooo 2003-10-06 09:45:11 UTC
sounds like StarBASIC, not OOo API
Comment 2 ab 2003-10-09 10:12:24 UTC
-> OOo 2.0
Comment 3 ab 2004-08-18 11:22:19 UTC
Fixed in cws ab10fixes
Comment 4 b.osi.ooo 2004-08-26 15:01:01 UTC
verified in CWS linux
Comment 5 ab 2005-01-04 13:11:25 UTC
Checked on src680 m66 -> Closed
Comment 6 hartsambatchvolv 2010-11-10 21:31:08 UTC
Created attachment 73687