round.w.d

Operands

$freg, $freg

Round double-precision to word : Converts the double-precision float in $f2 (even-numbered register) to the nearest 32-bit integer (round half to even, per IEEE 754), storing the result in $f1.

Variants

  • Round double-precision to word : Converts the double-precision float in $f2 (even-numbered register) to the nearest 32-bit integer (round half to even, per IEEE 754), storing the result in $f1. round.w.d $f1,$f2
.data
a: .double -1.5
.text
# Apply round.w.d to an initialized value; inspect $f8: raw bits 0xFFFFFFFE.
l.d $f2, a
round.w.d $f8, $f2