OpenOffice.org Forum at OOoForum.orgThe OpenOffice.org Forum
 
 [Home]   [FAQ]   [Search]   [Memberlist]   [Usergroups]   [Register
 [Profile]   [Log in to check your private messages]   [Log in

Is it a Bug ? (Problems with Currency type) - SOLVED

 
Post new topic   Reply to topic    OOoForum.org Forum Index -> OpenOffice.org Macros and API
View previous topic :: View next topic  
Author Message
cgriella
General User
General User


Joined: 25 May 2009
Posts: 20

PostPosted: Thu Jun 04, 2009 4:30 am    Post subject: Is it a Bug ? (Problems with Currency type) - SOLVED Reply with quote

Sub Teste
Dim curTeste as Currency
curTeste = -211869.1400
curTeste = curTeste - val("00000000000313100")/100
print "The result above is: " & curTeste
curTeste = -211869.1400 - val("00000000000313100")/100
print "But the result should be: " & curTeste
End Sub


Last edited by cgriella on Wed Jun 10, 2009 8:29 am; edited 1 time in total
Back to top
View user's profile Send private message
B Marcelly
Super User
Super User


Joined: 12 May 2004
Posts: 1453
Location: France

PostPosted: Fri Jun 05, 2009 11:24 am    Post subject: Reply with quote

Hi,
Don't use Currency variables.
They are bugged and probably will never be corrected, see Issues 31001, 54049, 91121.
______
Bernard
Back to top
View user's profile Send private message Visit poster's website
cgriella
General User
General User


Joined: 25 May 2009
Posts: 20

PostPosted: Sat Jun 06, 2009 5:42 pm    Post subject: Reply with quote

Thanks,

http://qa.openoffice.org/issues/show_bug.cgi?id=31001
http://qa.openoffice.org/issues/show_bug.cgi?id=54049
http://qa.openoffice.org/issues/show_bug.cgi?id=91121
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    OOoForum.org Forum Index -> OpenOffice.org Macros and API All times are GMT - 8 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group