# `trunc.w.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/trunc.w.d

**Truncate double-precision to word**

Category: Floating point

Converts the double-precision value in the second register to a 32-bit integer in the first, rounding toward zero.

## Forms

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

## Operands

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

## Example

```mips
.data
a: .double -1.5
.text
# Apply trunc.w.d to an initialized value; inspect $f8: raw bits 0xFFFFFFFF.
l.d $f2, a
trunc.w.d $f8, $f2
```
