|
Hex$ | ||
ResultString$ = Hex$(ValueToConvert) | ||
Parameters: ValueToConvert = The value you wish to translate to a Hex string |
||
Returns: ResultString$ |
||
For those who are familiar with the Hexadecimal number system. Hex$ is a handy function that will take any integer value and convert it into a hex formatted string. FACTS: * The created string will be in the form "$00000000" * Hex is base 16 number system, so each digit ranges from 0 to 15. Values 10,11,12,13,14,15 are represented using the A,B,C,D,E,F letters. So it's common to see Hex values that are mix of letters and numbers. * Hex is often used as way to representing ARGB colours. Examples. $000000ff = ARGB(0,0,0,255) , $0000ff00 = ARGB(0,0,255,0) , $00ff0000 = ARGB(0,255,0,0) * PlayBASIC compiler supports Hexadecimal literals, so you insert such values into your source code directly. Mini Tutorial: How to display the hexadecimal representation of integer value.
This example would output.
|
||
Example Source: Download This Example
|
Related Info: | Bin$ | Digits$ | Literals | Str$ | Val : |
|
|||||||||||||||||||||||||||||||||||||||
(c) Copyright 2002 - 2024 - Kevin Picone - PlayBASIC.com |