# Number

* [Convert operand to number](#convert-operand-to-number)
* [Convert operand to hex number](#convert-operand-to-hexadecimal-number)
* [Convert operand to decimal number](#convert-operand-to-decimal-number)
* [Convert operand to octal number](#convert-operand-to-octal-number)
* [Convert operand to binary number](#convert-operand-to-binary-number)
* [Convert operand to floating point number](#convert-operand-to-floating-point-number)
* [Toggle leading zeroes](#toggle-leading-zeroes)

### Convert operand to number

```
 Action    name: OpNumber
 
```

This command converts immediate operand(s) type of the current instruction/data to a number. That way, you can delete [suspicious](https://docs.hex-rays.com/9.0/user-guide/user-interface/search#search-for-next-suspicious-operand) mark of the item.

The number is represented in the default radix for the current processor (usually hex, but octal for PDP-11, for example).

When you use this command, IDA deletes the [manually](https://docs.hex-rays.com/9.0/user-guide/user-interface/menu-bar/edit/operand-types/user-defined-operand) entered operand.

If the cursor is on the first operand (the cursor is before ',') then the first operand will be affected; otherwise, all other operands will be affected.

### Convert operand to hexadecimal number

```
 Action    name: OpHex
 
```

This command converts immediate operand(s) type of the current instruction/data to hex number. So you can delete [suspicious](https://docs.hex-rays.com/9.0/user-guide/user-interface/search#search-for-next-suspicious-operand) mark of the item.

When you use this command, IDA deletes the [manually](https://docs.hex-rays.com/9.0/user-guide/user-interface/menu-bar/edit/operand-types/user-defined-operand) entered operand.

If the cursor is on the first operand (the cursor is before ',') then the first operand will be affected; otherwise, all other operands will be affected.

### Convert operand to decimal number

```
 Action    name: OpDecimal
 
```

This command converts the immediate operand(s) type of the current instruction/data to decimal. Therefore, it becomes a 'number'.

When you use this command, IDA deletes the [manually](https://docs.hex-rays.com/9.0/user-guide/user-interface/menu-bar/edit/operand-types/user-defined-operand) entered operand.

If the cursor is on the first operand (the cursor is before ',') then the first operand will be affected; otherwise, all other operands will be affected.

### Convert operand to octal number

```
 Action    name: OpOctal
 
```

This command makes the current instruction or data operand type octal. IDA always uses 123o notation for octal numbers even if the current assembler does not support octal numbers.

When you use this command, IDA deletes the [manually](https://docs.hex-rays.com/9.0/user-guide/user-interface/menu-bar/edit/operand-types/user-defined-operand) entered operand.

If the cursor is on the first operand (the cursor is before ',') then the first operand will be affected; otherwise, all other operands will be affected.

### Convert operand to binary number

```
 Action    name: OpBinary
 
```

This command makes the current instruction or data operand type binary. IDA always uses 123b notation for binary numbers even if the current assembler does not support binary numbers.

When you use this command, IDA deletes the [manually](https://docs.hex-rays.com/9.0/user-guide/user-interface/menu-bar/edit/operand-types/user-defined-operand) entered operand.

If the cursor is on the first operand (the cursor is before ',') then the first operand will be affected; otherwise, all other operands will be affected.

## Convert operand to floating point number

```
 Action    name: OpFloat
 
```

This command makes the current operand type floating point.

When you use this command, IDA deletes the [manually](https://docs.hex-rays.com/9.0/user-guide/user-interface/menu-bar/edit/operand-types/user-defined-operand) entered operand.

If the cursor is on the first operand (the cursor is before ',') then the first operand will be affected; otherwise, all other operands will be affected.

## Toggle leading zeroes

```
 Action    name: ToggleLeadingZeroes
 
```

This command displays or hides the leading zeroes of the current operand. Example: if the instruction looked like this:

```
        and     ecx, 40h
```

then after applying the command it will look like this:

```
        and     ecx, 00000040h
```

If you prefer to see leading zeroes in all cases, then open the [calculator](https://docs.hex-rays.com/9.0/user-guide/user-interface/menu-bar/view/calculator) and enter the following expression: [set\_inf\_attr](https://docs.hex-rays.com/9.0/developer-guide/idc/idc-api-reference/alphabetical-list-of-idc-functions/285)(INF\_GENFLAGS, get\_inf\_attr(INF\_GENFLAGS) | INFFL\_LZERO); This will toggle the default for the current database and all numbers without leading zeroes will become numbers with leading zeroes, and vice versa.

See also [Edit|Operand types](https://docs.hex-rays.com/9.0/user-guide/user-interface/menu-bar/edit/operand-types) submenu.
