# OCT2HEX

Spread for WinForms provides advanced software components that support Excel import/export, full cell customization, an extensive calculation engine with over 450 functions and more, all with zero dependencies on Excel.

## Content



This function converts an octal number to a hexadecimal number.

## Syntax

OCT2HEX(*number*,*places*)

## Arguments

This function has these arguments:

| **Argument** | **Description** |
| -------- | ----------- |
| *number* | Octal numeric value to convert, must be 10 characters or less |
| *places* | [Optional] Number of characters to return; if not an integer, the number is truncated |

## Remarks

An error value is returned if the *number* is invalid or if *places* is non-numeric or negative. If *places* is omitted, the calculation uses the minimum number of characters necessary. This argument is useful for adding leading zeros to the result.

## Data Types

Accepts numeric data. Returns numeric data.

## Examples

`OCT2HEX(7777)`

## Version Available

This function is available in product version 2.0 or later.

## See Also

[OCT2BIN](/spreadnet/docs/latest/online-formula/formulas-functionsall/formulas-functsMtoQ/FunctionOCT2BIN) \| [OCT2DEC](/spreadnet/docs/latest/online-formula/formulas-functionsall/formulas-functsMtoQ/FunctionOCT2DEC) \| [HEX2OCT](/spreadnet/docs/latest/online-formula/formulas-functionsall/formulas-functsFtoK/FunctionHEX2OCT) \| [DEC2OCT](/spreadnet/docs/latest/online-formula/formulas-functionsall/formulas-functsDtoG/FunctionDEC2OCT) \| [Engineering Functions](/spreadnet/docs/latest/online-formula/formulas-overview/formulas-functs/formulas-functtypes/formulas-functsengineer)