# `cvt.d.s`

[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.d.s

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

Category: Floating point

Converts the single-precision float in the second register to double-precision (64-bit IEEE 754) and stores the result in the first.

## Forms

- `cvt.d.s $f2, $f1`

## Operands

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

## Description

$f2 must be even-numbered. No data is lost because double has more precision.

## Example

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