>Did you try with old plain STR()? :) Also, could it be the problem in SET DIGITS, SET DECIMALS, etc. They could be different in your DLL and your test form - just guessing...
SET DIGITS?? There is no command like this in VFP. I've used STR() to display as much of the result as is possible and both values are identical. SET DECIMALS is the same. I've even tried it with SET COMPATIBLE ON and OFF (as mentioned in KB article Q247494. I've this tried on VFP 6.0 SP3 and SP4. I've tried it in the run environment and in the design enironment.
As near as I can figure out it: A. Only applies in a DLL and only with certain values; and B. Those values must come directly from a table. When assigning the exact same values by using literals (haven't tried memvars from a table) the DLL works as expected.
George
Ubi caritas et amor, deus ibi est