Manuals/calci/BIN2HEX

From ZCubes Wiki
Revision as of 13:36, 15 November 2013 by Swapna (talk | contribs)
Jump to navigation Jump to search

BIN2HEX(number,padding)

  • Where 'number' is the binary number to be converted and
  • 'padding' is the number of characters to display the output.

BIN2HEX() converts a binary number to its hexadecimal equivalent.

Description

BIN2HEX(number, padding)

This function is used to convert a binary number to its hexadecimal equivalent.

  • 'number' must be a binary number.
  • BIN2HEX returns the error value, when 'num' contains more than 10 characters (10 bits).
  • If the number is negative, Calci returns a NAN(error) value.
  • Calci returns an error, if 'padding' is nonnumeric or negative.

For Example,

BIN2HEX(11111011, 3) returns 0FB

BIN2HEX(1110) returns E

Examples

Formula Hex Output
BIN2HEX(100) 4
BIN2HEX(110011,4) 0033
BIN2HEX(11001100,4) 00CC
BIN2HEX(101000000000000) 4C00