Revision history for KeyPgCvd


Revision [20872]

Last edited on 2016-03-12 16:14:32 by fxm [Formatting]
Additions:


Revision [20119]

Edited on 2016-02-10 15:56:27 by DkLwikki [Update link format]
Additions:
[[KeyPgDeclare|declare]] [[KeyPgFunction|function]] **Cvd** ( [[KeyPgByval|byval]] //l// [[KeyPgAs|as]] [[KeyPgLongint|longint]] ) [[KeyPgAs|as]] [[KeyPgDouble|double]]
[[KeyPgDeclare|declare]] [[KeyPgFunction|function]] **Cvd** ( [[KeyPgByref|byref]] //str// [[KeyPgAs|as]] [[KeyPgConstQualifier|const]] [[KeyPgString|string]] ) [[KeyPgAs|as]] [[KeyPgDouble|double]]
A 64-bit ##[[KeyPgLongint|Longint]]## with a binary copy of a double-precision variable stored in it.
A ##[[KeyPgString|String]]## at least 8 bytes in length with a binary copy of a double-precision variable stored in it.
Returns a ##[[KeyPgDouble|Double]]## value holding a binary copy of the input value.
Does a binary copy from a 64-bit ##[[KeyPgLongint|Longint]]## or 8-byte ##[[KeyPgString|String]]## to a ##[[KeyPgDouble|Double]]## variable. A value of zero (##0.0##) is returned if the string is less than 8 bytes in length. The result will make sense only if the parameter contained a IEEE-754 formatted double-precision value, such as one generated by ##[[KeyPgCvlongint|Cvlongint]]## or ##[[KeyPgMkd|Mkd]]##.
This function is useful to read numeric values from buffers without using a ##[[KeyPgType|Type]]## definition.
- ##[[KeyPgMkd|Mkd]]##
- ##[[KeyPgCvs|Cvs]]##
- ##[[KeyPgCvlongint|Cvlongint]]##
Deletions:
[[KeyPgDeclare declare]] [[KeyPgFunction function]] **Cvd** ( [[KeyPgByval byval]] //l// [[KeyPgAs as]] [[KeyPgLongint longint]] ) [[KeyPgAs as]] [[KeyPgDouble double]]
[[KeyPgDeclare declare]] [[KeyPgFunction function]] **Cvd** ( [[KeyPgByref byref]] //str// [[KeyPgAs as]] [[KeyPgConstQualifier const]] [[KeyPgString string]] ) [[KeyPgAs as]] [[KeyPgDouble double]]
A 64-bit ##[[KeyPgLongint Longint]]## with a binary copy of a double-precision variable stored in it.
A ##[[KeyPgString String]]## at least 8 bytes in length with a binary copy of a double-precision variable stored in it.
Returns a ##[[KeyPgDouble Double]]## value holding a binary copy of the input value.
Does a binary copy from a 64-bit ##[[KeyPgLongint Longint]]## or 8-byte ##[[KeyPgString String]]## to a ##[[KeyPgDouble Double]]## variable. A value of zero (##0.0##) is returned if the string is less than 8 bytes in length. The result will make sense only if the parameter contained a IEEE-754 formatted double-precision value, such as one generated by ##[[KeyPgCvlongint Cvlongint]]## or ##[[KeyPgMkd Mkd]]##.
This function is useful to read numeric values from buffers without using a ##[[KeyPgType Type]]## definition.
- ##[[KeyPgMkd Mkd]]##
- ##[[KeyPgCvs Cvs]]##
- ##[[KeyPgCvlongint Cvlongint]]##


Revision [16543]

Edited on 2013-01-22 23:33:49 by CountingPine [Update link format]
Additions:
Does a binary copy from a 64-bit ##[[KeyPgLongint Longint]]## or 8-byte ##[[KeyPgString String]]## to a ##[[KeyPgDouble Double]]## variable. A value of zero (##0.0##) is returned if the string is less than 8 bytes in length. The result will make sense only if the parameter contained a IEEE-754 formatted double-precision value, such as one generated by ##[[KeyPgCvlongint Cvlongint]]## or ##[[KeyPgMkd Mkd]]##.
Deletions:
Does a binary copy from a 64-bit ##[[KeyPgLongint Longint]]## or 8-byte ##[[KeyPgString String]]## to a ##[[KeyPgDouble Double]]## variable. A value of zero (##0.0##) is returned if the string is less than 8 bytes in length. The result will make sense only if the parameter contained a IEEE-754 formatted double-precison value, such as one generated by ##[[KeyPgCvlongint Cvlongint]]## or ##[[KeyPgMkd Mkd]]##.


Revision [16542]

Edited on 2013-01-22 23:32:54 by CountingPine [Update link format]
Additions:
##//l//##
Deletions:
##//i//##


Revision [16541]

Edited on 2013-01-22 23:31:50 by CountingPine [Update link format]
Additions:
[[KeyPgDeclare declare]] [[KeyPgFunction function]] **Cvd** ( [[KeyPgByval byval]] //l// [[KeyPgAs as]] [[KeyPgLongint longint]] ) [[KeyPgAs as]] [[KeyPgDouble double]]
Deletions:
[[KeyPgDeclare declare]] [[KeyPgFunction function]] **Cvd** ( [[KeyPgByval byval]] //l// [[KeyPgAs as]] [[KeyPgLongint Longint]] ) [[KeyPgAs as]] [[KeyPgDouble double]]


Revision [16540]

Edited on 2013-01-22 23:31:17 by CountingPine [New Integer parameter (hopefully no copy/paste errors from Cvs)]
Additions:
Converts a 64-bit integer or 8-byte string to a double-precision value
[[KeyPgDeclare declare]] [[KeyPgFunction function]] **Cvd** ( [[KeyPgByval byval]] //l// [[KeyPgAs as]] [[KeyPgLongint Longint]] ) [[KeyPgAs as]] [[KeyPgDouble double]]
//result// = **Cvd**( //l// )
##//i//##
A 64-bit ##[[KeyPgLongint Longint]]## with a binary copy of a double-precision variable stored in it.
A ##[[KeyPgString String]]## at least 8 bytes in length with a binary copy of a double-precision variable stored in it.
Returns a ##[[KeyPgDouble Double]]## value holding a binary copy of the input value.
Does a binary copy from a 64-bit ##[[KeyPgLongint Longint]]## or 8-byte ##[[KeyPgString String]]## to a ##[[KeyPgDouble Double]]## variable. A value of zero (##0.0##) is returned if the string is less than 8 bytes in length. The result will make sense only if the parameter contained a IEEE-754 formatted double-precison value, such as one generated by ##[[KeyPgCvlongint Cvlongint]]## or ##[[KeyPgMkd Mkd]]##.
dim d as double, l as longint
d = 1.125
l = cvlongint(d)
print using "l = _&H&"; hex(l)
print using "cvd(i) = &"; cvd(l)
- QB did not support integer arguments.
- ##[[KeyPgCvs Cvs]]##
- ##[[KeyPgCvlongint Cvlongint]]##
Deletions:
Converts an eight byte string to a double-precision variable
A [[KeyPgString string]] exactly eight bytes in length with a binary copy of a double-precision variable stored in it.
Returns a [[KeyPgDouble double-precision]] variable to copy the binary copy of a double to.
Does a binary copy from a 8-byte-string to a double-precision variable. The result will have a sense only if the string contained a IEEE754 formated double value, as the one generated by ##[[KeyPgMkd Mkd]]##.
dim a as double, b as string
a=4534.4243
b=mkd(a)
print a, cvd(b)
sleep
- None


Revision [13942]

Edited on 2008-11-30 07:37:50 by JeffMarshall [name case fixup]
Additions:
[[KeyPgDeclare declare]] [[KeyPgFunction function]] **Cvd** ( [[KeyPgByref byref]] //str// [[KeyPgAs as]] [[KeyPgConstQualifier const]] [[KeyPgString string]] ) [[KeyPgAs as]] [[KeyPgDouble double]]
Deletions:
[[KeyPgDeclare declare]] [[KeyPgFunction function]] **Cvd** ( [[KeyPgByref byref]] //str// [[KeyPgAs as]] [[KeyPgConstqualifier const]] [[KeyPgString string]] ) [[KeyPgAs as]] [[KeyPgDouble double]]


Revision [13916]

Edited on 2008-11-28 18:55:03 by LaananFisher [Fixed: const-correctness]
Additions:
[[KeyPgDeclare declare]] [[KeyPgFunction function]] **Cvd** ( [[KeyPgByref byref]] //str// [[KeyPgAs as]] [[KeyPgConstqualifier const]] [[KeyPgString string]] ) [[KeyPgAs as]] [[KeyPgDouble double]]
Deletions:
[[KeyPgDeclare declare]] [[KeyPgFunction function]] **Cvd** ( [[KeyPgByref byref]] //str// [[KeyPgConstqualifier const]] [[KeyPgAs as]] [[KeyPgString string]] ) [[KeyPgAs as]] [[KeyPgDouble double]]


Revision [13910]

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


Revision [10064]

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



sf.net phatcode