加载中...

Databases

  1. Home
  2. Computing & Technology
  3. Databases

Microsoft Access Function Library: Hex()

By Mike Chapple, About.com

Function: Hex()

Purpose: The Hex() function converts a whole number into a string containing its hexadecimal representation.

Usage: Hex(value)

Value is a numeric or string expression that evaluates to a number. If it evaluates to a decimal number, Hex() rounds it to the nearest whole number prior to conversion.


Returns: String containing the hexadecimal value.

Examples and Special Cases
Hex(12)= "b"
Hex(125)= "7d"
Hex(125.4)= "7d"
Hex(125.6)= "7e"

Explore Databases

More from About.com

Databases

  1. Home
  2. Computing & Technology
  3. Databases
  4. Microsoft Access
  5. Access Function Library
  6. Microsoft Access Function Library: Hex()

©2009 About.com, a part of The New York Times Company.

All rights reserved.