Revision history for KeyPgCvs


Revision [20876]

Last edited on 2016-03-12 16:17:36 by fxm [Formatting]
Additions:


Revision [20123]

Edited on 2016-02-10 15:56:35 by DkLwikki [Update link format]
Additions:
[[KeyPgDeclare|declare]] [[KeyPgFunction|function]] **Cvs** ( [[KeyPgByval|byval]] //i// [[KeyPgAs|as]] [[KeyPgInteger|integer]] ) [[KeyPgAs|as]] [[KeyPgSingle|single]]
[[KeyPgDeclare|declare]] [[KeyPgFunction|function]] **Cvs** ( [[KeyPgByref|byref]] //str// [[KeyPgAs|as]] [[KeyPgConstQualifier|const]] [[KeyPgString|string]] ) [[KeyPgAs|as]] [[KeyPgSingle|single]]
A 32-bit ##[[KeyPgInteger|Integer]]## with a binary copy of a single-precision variable stored in it.
A ##[[KeyPgString|String]]## at least 4 bytes in length with a binary copy of a single-precision variable stored in it.
Returns a ##[[KeyPgSingle|Single]]## value holding a binary copy of the input value.
Does a binary copy from a 32-bit ##[[KeyPgInteger|Integer]]## or 4-byte ##[[KeyPgString|String]]## to a ##[[KeyPgSingle|Single]]## variable. A value of zero (##0.0##) is returned if the string is less than 4 bytes in length. The result will make sense only if the parameter contained a IEEE-754 formatted single-precision value, such as one generated by ##[[KeyPgCvi|Cvi]]## or ##[[KeyPgMks|Mks]]##.
This function is useful to read numeric values from buffers without using a ##[[KeyPgType|Type]]## definition.
- ##[[KeyPgMks|Mks]]##
- ##[[KeyPgCvd|Cvd]]##
- ##[[KeyPgCvi|Cvi]]##
Deletions:
[[KeyPgDeclare declare]] [[KeyPgFunction function]] **Cvs** ( [[KeyPgByval byval]] //i// [[KeyPgAs as]] [[KeyPgInteger integer]] ) [[KeyPgAs as]] [[KeyPgSingle single]]
[[KeyPgDeclare declare]] [[KeyPgFunction function]] **Cvs** ( [[KeyPgByref byref]] //str// [[KeyPgAs as]] [[KeyPgConstQualifier const]] [[KeyPgString string]] ) [[KeyPgAs as]] [[KeyPgSingle single]]
A 32-bit ##[[KeyPgInteger Integer]]## with a binary copy of a single-precision variable stored in it.
A ##[[KeyPgString String]]## at least 4 bytes in length with a binary copy of a single-precision variable stored in it.
Returns a ##[[KeyPgSingle Single]]## value holding a binary copy of the input value.
Does a binary copy from a 32-bit ##[[KeyPgInteger Integer]]## or 4-byte ##[[KeyPgString String]]## to a ##[[KeyPgSingle Single]]## variable. A value of zero (##0.0##) is returned if the string is less than 4 bytes in length. The result will make sense only if the parameter contained a IEEE-754 formatted single-precision value, such as one generated by ##[[KeyPgCvi Cvi]]## or ##[[KeyPgMks Mks]]##.
This function is useful to read numeric values from buffers without using a ##[[KeyPgType Type]]## definition.
- ##[[KeyPgMks Mks]]##
- ##[[KeyPgCvd Cvd]]##
- ##[[KeyPgCvi Cvi]]##


Revision [16544]

Edited on 2013-01-22 23:33:59 by CountingPine [Update link format]
Additions:
Converts a 32-bit integer or 4-byte string to a single-precision variable
[[KeyPgDeclare declare]] [[KeyPgFunction function]] **Cvs** ( [[KeyPgByval byval]] //i// [[KeyPgAs as]] [[KeyPgInteger integer]] ) [[KeyPgAs as]] [[KeyPgSingle single]]
A 32-bit ##[[KeyPgInteger Integer]]## with a binary copy of a single-precision variable stored in it.
A ##[[KeyPgString String]]## at least 4 bytes in length with a binary copy of a single-precision variable stored in it.
Returns a ##[[KeyPgSingle Single]]## value holding a binary copy of the input value.
Does a binary copy from a 32-bit ##[[KeyPgInteger Integer]]## or 4-byte ##[[KeyPgString String]]## to a ##[[KeyPgSingle Single]]## variable. A value of zero (##0.0##) is returned if the string is less than 4 bytes in length. The result will make sense only if the parameter contained a IEEE-754 formatted single-precision value, such as one generated by ##[[KeyPgCvi Cvi]]## or ##[[KeyPgMks Mks]]##.
Deletions:
Converts a 32-bit integer or 4-byte string to an single-precision variable
[[KeyPgDeclare declare]] [[KeyPgFunction function]] **Cvs** ( [[KeyPgByval byval]] //i// [[KeyPgAs as]] [[KeyPgInteger Integer]] ) [[KeyPgAs as]] [[KeyPgSingle single]]
A 32-bit ##[[KeyPgInteger Integer]]## with a binary copy of an single-precision variable stored in it.
A ##[[KeyPgString String]]## at least 4 bytes in length with a binary copy of an single-precision variable stored in it.
Returns a ##[[KeyPgSingle Single]]## variable holding a binary copy of the input value.
Does a binary copy from a 32-bit ##[[KeyPgInteger Integer]]## or 4-byte ##[[KeyPgString String]]## to a ##[[KeyPgSingle Single]]## variable. A value of zero (##0.0##) is returned if the string is less than 4 bytes in length. The result will make sense only if the parameter contained a IEEE-754 formatted single value, such as one generated by ##[[KeyPgCvi Cvi]]## or ##[[KeyPgMks Mks]]##.


Revision [16539]

Edited on 2013-01-22 23:25:38 by CountingPine [New Integer parameter]
Additions:
Converts a 32-bit integer or 4-byte string to an single-precision variable
[[KeyPgDeclare declare]] [[KeyPgFunction function]] **Cvs** ( [[KeyPgByval byval]] //i// [[KeyPgAs as]] [[KeyPgInteger Integer]] ) [[KeyPgAs as]] [[KeyPgSingle single]]
//result// = **Cvs**( //i// )
##//i//##
A 32-bit ##[[KeyPgInteger Integer]]## with a binary copy of an single-precision variable stored in it.
A ##[[KeyPgString String]]## at least 4 bytes in length with a binary copy of an single-precision variable stored in it.
Returns a ##[[KeyPgSingle Single]]## variable holding a binary copy of the input value.
Does a binary copy from a 32-bit ##[[KeyPgInteger Integer]]## or 4-byte ##[[KeyPgString String]]## to a ##[[KeyPgSingle Single]]## variable. A value of zero (##0.0##) is returned if the string is less than 4 bytes in length. The result will make sense only if the parameter contained a IEEE-754 formatted single value, such as one generated by ##[[KeyPgCvi Cvi]]## or ##[[KeyPgMks Mks]]##.
dim f as single, i as integer
f = 1.125
i = cvi(f)
print using "i = _&H&"; hex(i)
print using "cvs(i) = &"; cvs(i)
- QB did not support integer arguments.
- ##[[KeyPgCvd Cvd]]##
- ##[[KeyPgCvi Cvi]]##
Deletions:
Converts an four byte string to an single-precision variable
A [[KeyPgString string]] exactly four bytes in length with a binary copy of an single-precision variable stored in it.
Returns a [[KeyPgSingle single]] variable to copy the binary copy of a single to.
Does a binary copy from a 4-byte-string to a ##[[KeyPgSingle Single]]## variable. The result will have a sense only if the string contained a IEEE754 formated single value, as the one generated by ##[[KeyPgMks Mks]]##.
dim a as single, b as string
a=4534.4243
b=mks(a)
print a, cvs(b)
sleep
- None


Revision [13946]

Edited on 2008-11-30 07:38:18 by JeffMarshall [name case fixup]
Additions:
[[KeyPgDeclare declare]] [[KeyPgFunction function]] **Cvs** ( [[KeyPgByref byref]] //str// [[KeyPgAs as]] [[KeyPgConstQualifier const]] [[KeyPgString string]] ) [[KeyPgAs as]] [[KeyPgSingle single]]
Deletions:
[[KeyPgDeclare declare]] [[KeyPgFunction function]] **Cvs** ( [[KeyPgByref byref]] //str// [[KeyPgAs as]] [[KeyPgConstqualifier const]] [[KeyPgString string]] ) [[KeyPgAs as]] [[KeyPgSingle single]]


Revision [13914]

Edited on 2008-11-28 18:54:28 by LaananFisher [Fixed: const-correctness]
Additions:
[[KeyPgDeclare declare]] [[KeyPgFunction function]] **Cvs** ( [[KeyPgByref byref]] //str// [[KeyPgAs as]] [[KeyPgConstqualifier const]] [[KeyPgString string]] ) [[KeyPgAs as]] [[KeyPgSingle single]]
Deletions:
[[KeyPgDeclare declare]] [[KeyPgFunction function]] **Cvs** ( [[KeyPgByref byref]] //str// [[KeyPgAs as]] [[KeyPgString string]] ) [[KeyPgAs as]] [[KeyPgSingle single]]


Revision [10046]

The oldest known version of this page was created on 2007-07-24 08:03:37 by JeffMarshall [Fixed: const-correctness]
Valid XHTML :: Valid CSS: :: Powered by WikkaWiki



sf.net phatcode