MksMbf$ Function

Purpose

This function is used to convert floating point numbers in Microsoft Binary Float (MBF) into an 4-byte string.

Syntax

$ = MksMbf$(x [, x1,..])

x,x1,...:floating point value in Microsoft Binary Float format

Description

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.

Remarks

This is the reverse of the function CvsMbf()

Example

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)

See Also

CvsMbf, CvdMbf, MksMbf$

{Created by Sjouke Hamstra; Last updated: 28/02/2017 by James Gaite}