Converts four characters in a string from binary to IEEE single format.
Single = Cvs(a$ [,offset% = 1])
Cvs takes four characters starting at offset in a string as a number. Cvs(a$) is equivalent to Single{V:a$}. Cvs returns 0 if the string length is less than four.
OpenW # 1
Print Cvs(Mks$(12.25)) // Prints 12.25
Local a$ = Chr$(123)
Local b$ = Mki$((1234))
Local c$ = Mkl$(12345678)
Local d$ = Mks$(1.23)
Local e$ = Mkd$(1.23)
Print Asc(a$)`Cvi(b$)`Cvl(c$)`Cvs(d$)`Cvd(e$)
// Prints 123 1234 12345678 1.23 1.23
Cvs() is the reverse function of Mks$().
Asc(), Cvi(), Cvl(), Cvd(), Chr$(), Mki$(), Mkl$(), Mks$(), Mkd$()
{Created by Sjouke Hamstra; Last updated: 27/09/2014 by James Gaite}