This function is used to convert floating point numbers in Microsoft Binary Float (MBF) into an 4-byte string.
$ = MksMbf$(x [, x1,..])
x,x1,... | :floating point value in Microsoft Binary Float format |
As an aid to real old GWBASIC files containing binary floating point numbers written with GWBASIC this function is provided to convert an MBF-floating point number into an 8-byte string.
This is the reverse of the function CvsMbf()
Dim s1 As Single = Cvs("abcd")
Dim s2 As Single = CvsMbf("abcd")
Print s1, Hex(LPeek(V:s1), 4)
Print s2, Hex(LPeek(V:s2), 4)
Print Mks(s1, s1)
Print MksMbf$(s2, s2)
{Created by Sjouke Hamstra; Last updated: 28/02/2017 by James Gaite}