round.w.s

Round single-precision to word

Converts the single-precision value in $f1 to the nearest 32-bit integer in $f0, rounding half to even.

Forms

  • round.w.s ,

Operands

$f0
Any floating-point register, $f0 to $f31.
$f1
A floating-point register. It may be the same register as $f0.
.data
a: .float -1.5
.text
# Apply round.w.s to an initialized value; inspect $f0: raw bits 0xFFFFFFFE.
l.s $f1, a
round.w.s $f0, $f1