# `cvt.d.w`

[MIPS Documentation](https://asm-editor.specy.app/documentation/mips.md) › [Instructions](https://asm-editor.specy.app/documentation/mips/instruction.md)

Web page: https://asm-editor.specy.app/documentation/mips/instruction/cvt.d.w

**Convert integer word to double-precision**

Category: Floating point

Treats the 32-bit integer stored in the second register as a signed integer and converts it to a double-precision float stored in the first.

## Forms

- `cvt.d.w $f2, $f1`

## Operands

- `$f2`: An even-numbered floating-point register, `$f0` to `$f30`. A double-precision value uses this register and the next odd-numbered register.
- `$f1`: Any floating-point register, `$f0` to `$f31`.

## Description

$f2 must be even-numbered.

## Example

```mips
.text
# Convert integer 7 to double. Inspect $f2:$f3: 7.0 (raw bits 0x401C000000000000).
li $t0, 7
mtc1 $t0, $f4
cvt.d.w $f2, $f4
```
