| View previous topic :: View next topic |
| Author |
Message |
cgriella General User


Joined: 25 May 2009 Posts: 20
|
Posted: Thu Jun 04, 2009 4:30 am Post subject: Is it a Bug ? (Problems with Currency type) - SOLVED |
|
|
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 |
|
 |
B Marcelly Super User

Joined: 12 May 2004 Posts: 1414 Location: France
|
Posted: Fri Jun 05, 2009 11:24 am Post subject: |
|
|
Hi,
Don't use Currency variables.
They are bugged and probably will never be corrected, see Issues 31001, 54049, 91121.
______
Bernard |
|
| Back to top |
|
 |
cgriella General User


Joined: 25 May 2009 Posts: 20
|
|
| Back to top |
|
 |
|