Revision history for KeyPgCvlongint
Additions:
Converts a double-precision floating-point number or eight-byte string to a ##[[KeyPgLongint|Longint]]## variable
A ##[[KeyPgDouble|Double]]## floating-point number with a binary copy of a ##[[KeyPgLongint|Longint]]## variable stored in it.
A ##[[KeyPgDouble|Double]]## floating-point number with a binary copy of a ##[[KeyPgLongint|Longint]]## variable stored in it.
Deletions:
A ##[[KeyPgDouble|Double]]## floating-point number with a binary copy of a ##[[keyPgLongint|Longint]]## variable stored in it.
Additions:
ll = cvlongint(s)
Deletions:
Additions:
Additions:
Converts a double-precision floating-point number or eight-byte string to a ##[[KeypgLongint|Longint]]## variable
[[KeyPgDeclare|declare]] [[KeyPgFunction|function]] **Cvlongint** ( [[KeyPgByval|byval]] //dbl// [[KeyPgAs|as]] [[KeyPgSingle|double]] ) [[KeyPgAs|as]] [[KeyPgLong|longint]]
[[KeyPgDeclare|declare]] [[KeyPgFunction|function]] **Cvlongint** ( [[KeyPgByref|byref]] //str// [[KeyPgAs|as]] [[KeyPgConstQualifier|const]] [[KeyPgString|string]] ) [[KeyPgAs|as]] [[KeyPgLong|longint]]
A ##[[KeyPgDouble|Double]]## floating-point number with a binary copy of a ##[[keyPgLongint|Longint]]## variable stored in it.
A ##[[KeyPgString|String]]## at least eight bytes in length with a binary copy of a ##[[KeyPgLongint|Longint]]## variable stored in it.
A ##[[KeyPgLongint|Longint]]## variable holding a binary copy of the input variable.
Returns a 64-bit ##[[KeyPgLongint|Longint]]## value using the binary data contained in a ##[[KeyPgDouble|Double]]##, or a ##[[KeyPgString|String]]## of at least eight bytes in length. A value of zero (##0##) is returned if the string is less than eight bytes in length.
##**Cvlongint**## is used to convert 8-byte strings created with ##[[KeyPgMklongint|Mklongint]]##.
This function can also be used to convert 64-bit integer values from a memory or file buffer without the need for a ##[[KeyPgType|Type]]## structure. However, just as with the type structure, special care should be taken when using ##**Cvlongint**## to convert strings that have been read from a buffer.
- ##[[KeyPgMklongint|Mklongint]]##
- ##[[KeyPgCvshort|Cvshort]]##
- ##[[KeyPgCvi|Cvi]]##
- ##[[KeyPgCvl|Cvl]]##
[[KeyPgDeclare|declare]] [[KeyPgFunction|function]] **Cvlongint** ( [[KeyPgByval|byval]] //dbl// [[KeyPgAs|as]] [[KeyPgSingle|double]] ) [[KeyPgAs|as]] [[KeyPgLong|longint]]
[[KeyPgDeclare|declare]] [[KeyPgFunction|function]] **Cvlongint** ( [[KeyPgByref|byref]] //str// [[KeyPgAs|as]] [[KeyPgConstQualifier|const]] [[KeyPgString|string]] ) [[KeyPgAs|as]] [[KeyPgLong|longint]]
A ##[[KeyPgDouble|Double]]## floating-point number with a binary copy of a ##[[keyPgLongint|Longint]]## variable stored in it.
A ##[[KeyPgString|String]]## at least eight bytes in length with a binary copy of a ##[[KeyPgLongint|Longint]]## variable stored in it.
A ##[[KeyPgLongint|Longint]]## variable holding a binary copy of the input variable.
Returns a 64-bit ##[[KeyPgLongint|Longint]]## value using the binary data contained in a ##[[KeyPgDouble|Double]]##, or a ##[[KeyPgString|String]]## of at least eight bytes in length. A value of zero (##0##) is returned if the string is less than eight bytes in length.
##**Cvlongint**## is used to convert 8-byte strings created with ##[[KeyPgMklongint|Mklongint]]##.
This function can also be used to convert 64-bit integer values from a memory or file buffer without the need for a ##[[KeyPgType|Type]]## structure. However, just as with the type structure, special care should be taken when using ##**Cvlongint**## to convert strings that have been read from a buffer.
- ##[[KeyPgMklongint|Mklongint]]##
- ##[[KeyPgCvshort|Cvshort]]##
- ##[[KeyPgCvi|Cvi]]##
- ##[[KeyPgCvl|Cvl]]##
Deletions:
[[KeyPgDeclare declare]] [[KeyPgFunction function]] **Cvlongint** ( [[KeyPgByval byval]] //dbl// [[KeyPgAs as]] [[KeyPgSingle double]] ) [[KeyPgAs as]] [[KeyPgLong longint]]
[[KeyPgDeclare declare]] [[KeyPgFunction function]] **Cvlongint** ( [[KeyPgByref byref]] //str// [[KeyPgAs as]] [[KeyPgConstQualifier const]] [[KeyPgString string]] ) [[KeyPgAs as]] [[KeyPgLong longint]]
A ##[[KeyPgDouble Double]]## floating-point number with a binary copy of a ##[[keyPgLongint Longint]]## variable stored in it.
A ##[[KeyPgString String]]## at least eight bytes in length with a binary copy of a ##[[KeyPgLongint Longint]]## variable stored in it.
A ##[[KeyPgLongint Longint]]## variable holding a binary copy of the input variable.
Returns a 64-bit ##[[KeyPgLongint Longint]]## value using the binary data contained in a ##[[KeyPgDouble Double]]##, or a ##[[KeyPgString String]]## of at least eight bytes in length. A value of zero (##0##) is returned if the string is less than eight bytes in length.
##**Cvlongint**## is used to convert 8-byte strings created with ##[[KeyPgMklongint Mklongint]]##.
This function can also be used to convert 64-bit integer values from a memory or file buffer without the need for a ##[[KeyPgType Type]]## structure. However, just as with the type structure, special care should be taken when using ##**Cvlongint**## to convert strings that have been read from a buffer.
- ##[[KeyPgMklongint Mklongint]]##
- ##[[KeyPgCvshort Cvshort]]##
- ##[[KeyPgCvi Cvi]]##
- ##[[KeyPgCvl Cvl]]##
Additions:
A ##[[KeyPgString String]]## at least eight bytes in length with a binary copy of a ##[[KeyPgLongint Longint]]## variable stored in it.
- In QB an error occurs if the string passed is less than eight bytes in length.
- In QB an error occurs if the string passed is less than eight bytes in length.
Deletions:
- In QB an error occurs if the string passed is less than four bytes in length.
Additions:
s = "ABCDEFGH"
ll = cvlongint(ll)
ll = cvlongint(ll)
Deletions:
s = mklongint(ll)
Additions:
- ##[[KeyPgMklongint Mklongint]]##
- ##[[KeyPgCvl Cvl]]##
- ##[[KeyPgCvl Cvl]]##
Deletions:
- ##[[KeyPgCvlongint Cvlongint]]##
Additions:
Converts a double-precision floating-point number or eight-byte string to a ##[[KeypgLongint Longint]]## variable
[[KeyPgDeclare declare]] [[KeyPgFunction function]] **Cvlongint** ( [[KeyPgByval byval]] //dbl// [[KeyPgAs as]] [[KeyPgSingle double]] ) [[KeyPgAs as]] [[KeyPgLong longint]]
[[KeyPgDeclare declare]] [[KeyPgFunction function]] **Cvlongint** ( [[KeyPgByref byref]] //str// [[KeyPgAs as]] [[KeyPgConstQualifier const]] [[KeyPgString string]] ) [[KeyPgAs as]] [[KeyPgLong longint]]
//result// = **Cvlongint**( //dbl// )
##//dbl//##
A ##[[KeyPgDouble Double]]## floating-point number with a binary copy of a ##[[keyPgLongint Longint]]## variable stored in it.
A ##[[KeyPgString String]]## at least four bytes in length with a binary copy of a ##[[KeyPgLongint Longint]]## variable stored in it.
A ##[[KeyPgLongint Longint]]## variable holding a binary copy of the input variable.
Returns a 64-bit ##[[KeyPgLongint Longint]]## value using the binary data contained in a ##[[KeyPgDouble Double]]##, or a ##[[KeyPgString String]]## of at least eight bytes in length. A value of zero (##0##) is returned if the string is less than eight bytes in length.
##**Cvlongint**## is used to convert 8-byte strings created with ##[[KeyPgMklongint Mklongint]]##.
This function can also be used to convert 64-bit integer values from a memory or file buffer without the need for a ##[[KeyPgType Type]]## structure. However, just as with the type structure, special care should be taken when using ##**Cvlongint**## to convert strings that have been read from a buffer.
dim ll as longint, s as string
ll = &H4847464544434241
s = mklongint(ll)
print using "ll = _&H&"; hex(ll)
print using "s = ""&"""; s
- In QB an error occurs if the string passed is less than four bytes in length.
- QB did not support floating-point arguments.
- ##[[KeyPgMkl Mkl]]##
- ##[[KeyPgCvshort Cvshort]]##
- ##[[KeyPgCvi Cvi]]##
- ##[[KeyPgCvlongint Cvlongint]]##
[[KeyPgDeclare declare]] [[KeyPgFunction function]] **Cvlongint** ( [[KeyPgByval byval]] //dbl// [[KeyPgAs as]] [[KeyPgSingle double]] ) [[KeyPgAs as]] [[KeyPgLong longint]]
[[KeyPgDeclare declare]] [[KeyPgFunction function]] **Cvlongint** ( [[KeyPgByref byref]] //str// [[KeyPgAs as]] [[KeyPgConstQualifier const]] [[KeyPgString string]] ) [[KeyPgAs as]] [[KeyPgLong longint]]
//result// = **Cvlongint**( //dbl// )
##//dbl//##
A ##[[KeyPgDouble Double]]## floating-point number with a binary copy of a ##[[keyPgLongint Longint]]## variable stored in it.
A ##[[KeyPgString String]]## at least four bytes in length with a binary copy of a ##[[KeyPgLongint Longint]]## variable stored in it.
A ##[[KeyPgLongint Longint]]## variable holding a binary copy of the input variable.
Returns a 64-bit ##[[KeyPgLongint Longint]]## value using the binary data contained in a ##[[KeyPgDouble Double]]##, or a ##[[KeyPgString String]]## of at least eight bytes in length. A value of zero (##0##) is returned if the string is less than eight bytes in length.
##**Cvlongint**## is used to convert 8-byte strings created with ##[[KeyPgMklongint Mklongint]]##.
This function can also be used to convert 64-bit integer values from a memory or file buffer without the need for a ##[[KeyPgType Type]]## structure. However, just as with the type structure, special care should be taken when using ##**Cvlongint**## to convert strings that have been read from a buffer.
dim ll as longint, s as string
ll = &H4847464544434241
s = mklongint(ll)
print using "ll = _&H&"; hex(ll)
print using "s = ""&"""; s
- In QB an error occurs if the string passed is less than four bytes in length.
- QB did not support floating-point arguments.
- ##[[KeyPgMkl Mkl]]##
- ##[[KeyPgCvshort Cvshort]]##
- ##[[KeyPgCvi Cvi]]##
- ##[[KeyPgCvlongint Cvlongint]]##
Deletions:
[[KeyPgDeclare declare]] [[KeyPgFunction function]] **Cvlongint** ( [[KeyPgByref byref]] //str// [[KeyPgAs as]] [[KeyPgConstQualifier const]] [[KeyPgString string]] ) [[KeyPgAs as]] [[KeyPgLongint longint]]
A [[KeyPgString string]] exactly eight bytes in length with a binary copy of a long integer variable stored in it.
A [[KeyPgLongint longint]] variable to copy the binary copy of a long integer to.
Does a binary copy from an 8-byte-string to a longint variable. The result will have a sense only if the string contained a correctly formatted longint, as the one generated by ##[[KeyPgMklongint Mklongint]]##
This function is useful to read numeric values from buffers without using a ##[[KeyPgType Type]]## definition.
dim a as longint, b as string
a=4534
b=mklongint(a)
print a, cvlongint(b)
sleep
{{fbdoc item="lang"}}
- Not available in the //[[CompilerOptlang -lang qb]]// dialect unless referenced with the alias ##**""__Cvlongint""**##.
- New to ""FreeBASIC""
- ##[[KeyPgMklongint Mklongint]]##
No Differences
Revision [14292]
Edited on 2009-08-29 21:52:17 by CountingPine [Remove CamelCase links in "New to FreeBASIC"]Additions:
- New to ""FreeBASIC""
- New to ""FreeBASIC""
- New to ""FreeBASIC""
Deletions:
- New to FreeBASIC
Additions:
[[KeyPgDeclare declare]] [[KeyPgFunction function]] **Cvlongint** ( [[KeyPgByref byref]] //str// [[KeyPgAs as]] [[KeyPgConstQualifier const]] [[KeyPgString string]] ) [[KeyPgAs as]] [[KeyPgLongint longint]]
Deletions:
Additions:
[[KeyPgDeclare declare]] [[KeyPgFunction function]] **Cvlongint** ( [[KeyPgByref byref]] //str// [[KeyPgAs as]] [[KeyPgConstqualifier const]] [[KeyPgString string]] ) [[KeyPgAs as]] [[KeyPgLongint longint]]