# `cvt.s.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.s.w

**Convert integer word to single-precision**

Category: Floating point

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

Used in: [Floating point and Coprocessor 1](https://asm-editor.specy.app/learn/courses/mips/think-in-assembly/floating-point-and-coprocessor-1.md) (MIPS assembly)

## Forms

- `cvt.s.w $f0, $f1`

## Operands

- `$f0`: Any floating-point register, `$f0` to `$f31`.
- `$f1`: A floating-point register. It may be the same register as `$f0`.

## Example

```mips
.text
# Convert integer 7 to single precision. Inspect $f0: raw bits 0x40E00000 (7.0).
li $t0, 7
mtc1 $t0, $f2
cvt.s.w $f0, $f2
```
