# `div.d`

[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/div.d

**Floating-point divide (double precision)**

Category: Floating point

Divides the second register by the third using IEEE 754 double-precision (64-bit) arithmetic and stores the quotient in the first.

## Forms

- `div.d $f2, $f4, $f6`

## Operands

- `$f2`: An even-numbered floating-point register, `$f0` to `$f30`. A double-precision value uses this register and the next odd-numbered register.
- `$f4`: An even-numbered floating-point register holding a double. It may be the same register as `$f2`.
- `$f6`: An even-numbered floating-point register holding a double. It may be the same register as `$f2`.

## Description

All register numbers must be even.

## Example

```mips
.data
a: .double 1.5
b: .double 2.25
.text
# div double 1.5 and 2.25. Inspect $f6:$f7 for 0.6666666666666666 (raw bits 0x3FE5555555555555).
l.d $f2, a
l.d $f4, b
div.d $f6, $f2, $f4
```
