CvsMbf Function

Purpose

converts the four characters in a string from Microsoft Binary Float to IEEE single format.

Syntax

Single = CvsMbf(s$ [,offset% = 1])

Description

As an aid to read old GWBASIC Files containing binary floating point numbers - written with GWBASIC's Mks$() - in the Microsoft Binary Float (MBF) format there is now the Function CvsMbf() corresponding to Cvs()

Exmaple

Print CvsMbf("GFABasic") // Prints 1.63709887045087e-19

Print Cvs("GFABasic")    // Prints 48.31863

Converts a number from a four byte string in MBF-Single format. (it has about 6 accurate digits, the rest are random).

See Also

Cvs, MksMbf$()

{Created by Sjouke Hamstra; Last updated: 27/09/2014 by James Gaite}