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

**Convert double-precision to single-precision**

Category: Floating point

Converts the double-precision float in the second register to single-precision and stores the result in the first.

## Forms

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

## Description

$f2 must be even-numbered. Precision may be lost since single has fewer significant digits.

## Example

```mips
.data
value: .double -1.5
.text
# Convert double -1.5 to single. Inspect $f0: -1.5 (raw bits 0xBFC00000).
l.d $f2, value
cvt.s.d $f0, $f2
```
