I peek'd a double value in VB and PB.
They differ.
I need a PB variable (double) compatible with VB.
How?
These are the results of 123.456
VB:
119
190
159
26
47
221
94
64
PB:
0
0
0
32
47
221
94
64
The following example creates exactly the same problem!
Note: I can not make use of currency or extended precision.
??
------------------
[email protected]
They differ.
I need a PB variable (double) compatible with VB.
How?
These are the results of 123.456
VB:
119
190
159
26
47
221
94
64
PB:
0
0
0
32
47
221
94
64
The following example creates exactly the same problem!
Code:
#Compile Exe Function PbMain Dim dbl As Double dbl = 123.456 MsgBox Str$( Dbl ) & ", " & Format$( Dbl, "#.#################" ) End Function
??
------------------
[email protected]
Comment