StrU()

Syntax

Result$ = StrU(Value.q, Type)
Description
Converts an unsigned numeric number into a string.

Parameters

Value.q The value to convert.
Type It can be one of the following value:
  #PB_Quad   : The value is handled as a quad number, ranging from 0 to 18446744073709551615 (default)
  #PB_Byte   : The value is handled as a byte number, ranging from 0 to 255
  #PB_Ascii  : The value is handled as a ascii character, ranging from 0 to 255
  #PB_Word   : The value is handled as a word number, ranging from 0 to 65535
  #PB_Unicode: The value is handled as a unicode character, ranging from 0 to 65535
  #PB_Long   : The value is handled as a long number, ranging from 0 to 4294967296

Return value

A string holding the converted value.

Remarks

Signed integer numbers must be converted with Str() and float numbers with StrF() or StrD().

Example

  byte.b = 255
  Debug Str(byte) ; Will display -1
  Debug StrU(byte, #PB_Byte) ; Will display 255

See Also

Str(), StrD(), StrF(), Val(), ValD(), ValF(), Hex(), Bin(), FormatNumber()

Supported OS

All

<- StrF() - String Index - StringByteLength() ->