# U2BIN()

Convert Harbour numeric into unsigned long encoded bytes

Syntax

  U2BIN( <nNumber> ) --> cBuffer

Arguments

  <nNumber> is a numeric value to convert (decimal digits are ignored).

Returns

  U2BIN() return four bytes character string that contain 32 bit encoded unsigned long integer (least significant byte first).

Description

  U2BIN() is one of the low level binary conversion functions, those functions convert between Harbour numeric and a character representation of numeric value. U2BIN() take a numeric integer value and convert it into four bytes of encoded 32 bit unsigned long integer.
  You might ask what is the need for such functions, well, first of all it allow you to read/write information from/to a binary file (like extracting information from DBF header), it is also a useful way to share information from source other than Harbour (C for instance).
  U2BIN() is the opposite of BIN2U()

Status

  Ready

Compliance

  U2BIN() is an XBase++ compatibility function and does not exist as a standard CA-Clipper 5.x function. This function is only visible if source/rtl/binnum.c was compiled with the HB_COMPAT_XPP flag.

Files

  Library is rtl

See Also

- BIN2I()
- BIN2L()
- BIN2U()
- BIN2W()
- I2BIN()
- L2BIN()
- W2BIN()
- WORD()
- FWRITE()