CVSMBF, MKSMBF$, ETC.
#3
Is this a problem with the return type that you're moving your variable back in to?  As far as I can tell, MKD$ works as it should, and we haven't had any error reports with it before.

Code: (Select All)
Dim x As Double, y As Double
x = 3.141592654
t$ = MKD$(x)
y = CVD(t$)
z = CVD(t$)

Print x
Print t$
Print y
Print z

As you can see from the above, if we take a value from a double, convert it to a string, then convert it back to a different double, the value remains the same.  
There is a loss of precision, however, when we try and put that same double value into a SINGLE, as we see with z.


If you can share some code that isn't working as expected, we'll be more than happy to look into it.
Reply


Messages In This Thread
CVSMBF, MKSMBF$, ETC. - by arnoldhf - 07-18-2022, 01:20 PM
RE: CVSMBF, MKSMBF$, ETC. - by bplus - 07-18-2022, 01:31 PM
RE: CVSMBF, MKSMBF$, ETC. - by arnoldhf - 07-18-2022, 05:17 PM
RE: CVSMBF, MKSMBF$, ETC. - by SMcNeill - 07-18-2022, 02:50 PM
RE: CVSMBF, MKSMBF$, ETC. - by arnoldhf - 07-18-2022, 05:06 PM
RE: CVSMBF, MKSMBF$, ETC. - by SMcNeill - 07-18-2022, 06:15 PM
RE: CVSMBF, MKSMBF$, ETC. - by arnoldhf - 07-18-2022, 07:10 PM



Users browsing this thread: 1 Guest(s)