Mks Function

Purpose

converts a 32-bit floating point (Single) expression into a four characters string.

Syntax

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

x, x1, ..: Single

Description

Creates a four character long string from a number internally stored in IEEE single format.

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)

Remarks

Mks() is the reverse function of Cvs().

See Also

Cvn Functions, Mkl, Mki, Mkw, Mkd, Mks, MkCur, MkLarge

{Created by Sjouke Hamstra; Last updated: 18/10/2014 by James Gaite}