Revision history for KeyPgCbyte


Revision [20836]

Last edited on 2016-03-12 15:23:15 by fxm [Formatting]
Additions:




Revision [20078]

Edited on 2016-02-10 15:55:21 by DkLwikki [Update link format]
Additions:
Converts numeric or string expression to ##[[KeyPgByte|Byte]]##.
[[KeyPgDeclare|declare]] [[KeyPgFunction|function]] **Cbyte** ( [[KeyPgByval|byval]] //expression// [[KeyPgAs|as]] [[DataType|datatype]] ) [[KeyPgAs|as]] [[KeyPgByte|byte]]
[[KeyPgType|Type]] //typename//
[[KeyPgDeclare|declare]] [[KeyPgOperator|operator]] [[KeyPgCast|cast]] ( ) [[KeyPgAs|as]] [[KeyPgByte|byte]]
A numeric, string, or pointer expression to cast to a ##[[KeyPgByte|Byte]]## value.
A ##[[KeyPgByte|Byte]]## value.
The ##**Cbyte**## function rounds off the decimal part and returns a 8-bit ##[[KeyPgByte|Byte]]## value. The function does not check for an overflow, and results are undefined for values which are less than ##-128## or larger than ##127##.
If the argument is a string expression, it is converted to numeric by using ##[[KeyPgValint|Valint]]##.
- Not available in the //[[CompilerOptlang|-lang qb]]// dialect unless referenced with the alias ##**""__Cbyte""**##.
- ##[[KeyPgCubyte|Cubyte]]##
- ##[[KeyPgCshort|Cshort]]##
- ##[[KeyPgCushort|Cushort]]##
- ##[[KeyPgCint|Cint]]##
- ##[[KeyPgCuint|Cuint]]##
- ##[[KeyPgClng|Clng]]##
- ##[[KeyPgCulng|Culng]]##
- ##[[KeyPgClngint|Clngint]]##
- ##[[KeyPgCulngint|Culngint]]##
- ##[[KeyPgCsng|Csng]]##
- ##[[KeyPgCdbl|Cdbl]]##
Deletions:
Converts numeric or string expression to ##[[KeyPgByte Byte]]##.
[[KeyPgDeclare declare]] [[KeyPgFunction function]] **Cbyte** ( [[KeyPgByval byval]] //expression// [[KeyPgAs as]] [[DataType datatype]] ) [[KeyPgAs as]] [[KeyPgByte byte]]
[[KeyPgType Type]] //typename//
[[KeyPgDeclare declare]] [[KeyPgOperator operator]] [[KeyPgCast cast]] ( ) [[KeyPgAs as]] [[KeyPgByte byte]]
A numeric, string, or pointer expression to cast to a ##[[KeyPgByte Byte]]## value.
A ##[[KeyPgByte Byte]]## value.
The ##**Cbyte**## function rounds off the decimal part and returns a 8-bit ##[[KeyPgByte Byte]]## value. The function does not check for an overflow, and results are undefined for values which are less than ##-128## or larger than ##127##.
If the argument is a string expression, it is converted to numeric by using ##[[KeyPgValint Valint]]##.
- Not available in the //[[CompilerOptlang -lang qb]]// dialect unless referenced with the alias ##**""__Cbyte""**##.
- ##[[KeyPgCubyte Cubyte]]##
- ##[[KeyPgCshort Cshort]]##
- ##[[KeyPgCushort Cushort]]##
- ##[[KeyPgCint Cint]]##
- ##[[KeyPgCuint Cuint]]##
- ##[[KeyPgClng Clng]]##
- ##[[KeyPgCulng Culng]]##
- ##[[KeyPgClngint Clngint]]##
- ##[[KeyPgCulngint Culngint]]##
- ##[[KeyPgCsng Csng]]##
- ##[[KeyPgCdbl Cdbl]]##


Revision [15787]

Edited on 2012-01-23 16:04:26 by CountingPine [hyphen]
Additions:
The ##**Cbyte**## function rounds off the decimal part and returns a 8-bit ##[[KeyPgByte Byte]]## value. The function does not check for an overflow, and results are undefined for values which are less than ##-128## or larger than ##127##.
Deletions:
The ##**Cbyte**## function rounds off the decimal part and returns a 8 bit ##[[KeyPgByte Byte]]## value. The function does not check for an overflow, and results are undefined for values which are less than ##-128## or larger than ##127##.


Revision [15781]

Edited on 2012-01-23 15:59:46 by CountingPine [Add "undefined results" message]
Additions:
The ##**Cbyte**## function rounds off the decimal part and returns a 8 bit ##[[KeyPgByte Byte]]## value. The function does not check for an overflow, and results are undefined for values which are less than ##-128## or larger than ##127##.
The name can be explained as 'Convert to Byte'.
Deletions:
The ##**Cbyte**## function rounds off the decimal part and returns a 8-bit ##[[KeyPgByte Byte]]## value. The function does not check for overflow. The name can be explained as 'Convert to Byte'.


Revision [15637]

Edited on 2012-01-12 13:28:40 by AgAmemnus [Add "undefined results" message]
Additions:
The ##**Cbyte**## function rounds off the decimal part and returns a 8-bit ##[[KeyPgByte Byte]]## value. The function does not check for overflow. The name can be explained as 'Convert to Byte'.
Deletions:
The ##**Cbyte**## function rounds off the decimal part and returns a 8 bit ##[[KeyPgByte Byte]]## value. The function does not check for overflow. The name can be explained as 'Convert to Byte'.


Revision [15631]

Edited on 2012-01-12 13:26:22 by AgAmemnus [Removed extraneous description / poor grammar.]
Additions:
The ##**Cbyte**## function rounds off the decimal part and returns a 8 bit ##[[KeyPgByte Byte]]## value. The function does not check for overflow. The name can be explained as 'Convert to Byte'.
Deletions:
The ##**Cbyte**## function rounds off the decimal part and returns a 8 bit ##[[KeyPgByte Byte]]## value. The function does not check for an overflow, so be sure not to pas a value thats less/larger then -128 to 127. The name can be explained as 'Convert to Byte'.


Revision [14269]

Edited on 2009-08-29 21:51:28 by CountingPine [Remove CamelCase links in "New to FreeBASIC"]
Additions:
- New to ""FreeBASIC""
Deletions:
- New to FreeBASIC


Revision [13098]

The oldest known version of this page was created on 2008-04-24 15:40:22 by JeffMarshall [Remove CamelCase links in "New to FreeBASIC"]
Valid XHTML :: Valid CSS: :: Powered by WikkaWiki



sf.net phatcode