Revision history for KeyPgClng


Revision [21670]

Last edited on 2016-11-07 05:23:51 by fxm [Formatting]
Additions:
The ##**Clng**## function rounds off the decimal part and returns a 32-bit ##[[KeyPgLong|Long]]## value. The function does not check for an overflow, and results are undefined for values which are less than ##-2## ##147## ##483## ##648## or larger than ##2## ##147## ##483## ##647##.
Deletions:
The ##**Clng**## function rounds off the decimal part and returns a 32-bit ##[[KeyPgLong|Long]]## value. The function does not check for an overflow, and results are undefined for values which are less than ##-2## ##147## ##483## ##648## or larger than ##2## ##147## ##483## ##648##.


Revision [20845]

Edited on 2016-03-12 15:39:48 by fxm [Formatting]
Additions:




Revision [20088]

Edited on 2016-02-10 15:55:36 by DkLwikki [Update link format]
Additions:
Converts numeric or string expression to ##[[KeyPgLong|Long]]##
[[KeyPgDeclare|declare]] [[KeyPgFunction|function]] **Clng** ( [[KeyPgByval|byval]] //expression// [[KeyPgAs|as]] [[DataType|datatype]] ) [[KeyPgAs|as]] [[KeyPgLong|long]]
[[KeyPgType|Type]] //typename//
[[KeyPgDeclare|declare]] [[KeyPgOperator|operator]] [[KeyPgCast|cast]] ( ) [[KeyPgAs|as]] [[KeyPgLong|long]]
a numeric, string, or pointer expression to cast to a ##[[KeyPgLong|Long]]## value
A ##[[KeyPgLong|Long]]## value.
The ##**Clng**## function rounds off the decimal part and returns a 32-bit ##[[KeyPgLong|Long]]## value. The function does not check for an overflow, and results are undefined for values which are less than ##-2## ##147## ##483## ##648## or larger than ##2## ##147## ##483## ##648##.
If the argument is a string expression, it is converted to numeric by using ##[[KeyPgValint|Valint]]##.
- ##[[KeyPgCbyte|Cbyte]]##
- ##[[KeyPgCubyte|Cubyte]]##
- ##[[KeyPgCshort|Cshort]]##
- ##[[KeyPgCushort|Cushort]]##
- ##[[KeyPgCint|Cint]]##
- ##[[KeyPgCuint|Cuint]]##
- ##[[KeyPgCulng|Culng]]##
- ##[[KeyPgClngint|Clngint]]##
- ##[[KeyPgCulngint|Culngint]]##
- ##[[KeyPgCsng|Csng]]##
- ##[[KeyPgCdbl|Cdbl]]##
Deletions:
Converts numeric or string expression to ##[[KeyPgLong Long]]##
[[KeyPgDeclare declare]] [[KeyPgFunction function]] **Clng** ( [[KeyPgByval byval]] //expression// [[KeyPgAs as]] [[DataType datatype]] ) [[KeyPgAs as]] [[KeyPgLong long]]
[[KeyPgType Type]] //typename//
[[KeyPgDeclare declare]] [[KeyPgOperator operator]] [[KeyPgCast cast]] ( ) [[KeyPgAs as]] [[KeyPgLong long]]
a numeric, string, or pointer expression to cast to a ##[[KeyPgLong Long]]## value
A ##[[KeyPgLong Long]]## value.
The ##**Clng**## function rounds off the decimal part and returns a 32-bit ##[[KeyPgLong Long]]## value. The function does not check for an overflow, and results are undefined for values which are less than ##-2## ##147## ##483## ##648## or larger than ##2## ##147## ##483## ##648##.
If the argument is a string expression, it is converted to numeric by using ##[[KeyPgValint Valint]]##.
- ##[[KeyPgCbyte Cbyte]]##
- ##[[KeyPgCubyte Cubyte]]##
- ##[[KeyPgCshort Cshort]]##
- ##[[KeyPgCushort Cushort]]##
- ##[[KeyPgCint Cint]]##
- ##[[KeyPgCuint Cuint]]##
- ##[[KeyPgCulng Culng]]##
- ##[[KeyPgClngint Clngint]]##
- ##[[KeyPgCulngint Culngint]]##
- ##[[KeyPgCsng Csng]]##
- ##[[KeyPgCdbl Cdbl]]##


Revision [16689]

Edited on 2013-03-28 11:22:23 by DkLwikki [Update for 64bit branch]
Additions:
Converts numeric or string expression to ##[[KeyPgLong Long]]##
The ##**Clng**## function rounds off the decimal part and returns a 32-bit ##[[KeyPgLong Long]]## value. The function does not check for an overflow, and results are undefined for values which are less than ##-2## ##147## ##483## ##648## or larger than ##2## ##147## ##483## ##648##.
If the argument is a string expression, it is converted to numeric by using ##[[KeyPgValint Valint]]##.
Deletions:
Converts numeric or string expression to ##[[KeyPgLong Long]]## having the same size as ##[[KeyPgSizeof Sizeof]]([[KeyPgAny Any]] [[KeyPgPtr Ptr]])##
The ##**Clng**## function rounds off the decimal part and returns a 32-bit ##[[KeyPgInteger Integer]]## or 64-bit ##[[KeyPgLongint Longint]]## value. The function does not check for an overflow, and results are undefined for values which are less than ##-2## ##147## ##483## ##648## or larger than ##2## ##147## ##483## ##648##.
If the argument is a string expression, it is converted to numeric by using ##[[KeyPgValint Valint]]## or ##[[KeyPgVallng Vallng]]##.
##**Long**## has the same size as ##[[KeyPgSizeof Sizeof]]([[KeyPgAny Any]] [[KeyPgPtr Ptr]])##.
- LONG is always 32 bit in QB


Revision [15783]

Edited on 2012-01-23 16:02:16 by CountingPine [Add "undefined results" message]
Additions:
The ##**Clng**## function rounds off the decimal part and returns a 32-bit ##[[KeyPgInteger Integer]]## or 64-bit ##[[KeyPgLongint Longint]]## value. The function does not check for an overflow, and results are undefined for values which are less than ##-2## ##147## ##483## ##648## or larger than ##2## ##147## ##483## ##648##.
The name can be explained as 'Convert to ""LoNG""'.
Deletions:
The ##**Clng**## function rounds off the decimal part and returns a 32-bit ##[[KeyPgInteger Integer]]## or 64 bit ##[[KeyPgLongint Longint]]## value. The function does not check for overflow. The name can be explained as 'Convert to ""LoNG""'.


Revision [15635]

Edited on 2012-01-12 13:27:52 by AgAmemnus [Add "undefined results" message]
Additions:
The ##**Clng**## function rounds off the decimal part and returns a 32-bit ##[[KeyPgInteger Integer]]## or 64 bit ##[[KeyPgLongint Longint]]## value. The function does not check for overflow. The name can be explained as 'Convert to ""LoNG""'.
Deletions:
The ##**Clng**## function rounds off the decimal part and returns a 32 bit ##[[KeyPgInteger Integer]]## or 64 bit ##[[KeyPgLongint Longint]]## value. The function does not check for an overflow. The name can be explained as 'Convert to ""LoNG""'.


Revision [9928]

The oldest known version of this page was created on 2007-07-24 05:37:56 by JeffMarshall [Add "undefined results" message]
Valid XHTML :: Valid CSS: :: Powered by WikkaWiki



sf.net phatcode