---
spec: JVMS
title: "The Java Virtual Machine Specification"
edition: "Java SE 23 Edition"
java_version: 23
chapter: "Chapter 6. The Java Virtual Machine Instruction Set"
section: "6.5.f2d"
heading: "f2d"
parent: "6.5. Instructions"
source: https://docs.oracle.com/javase/specs/jvms/se23/html/jvms-6.html#jvms-6.5.f2d
id: "6.5.f2d"
url: https://jvm.obfuscated.software/jvms/se23/6.5.f2d.html
raw: https://jvm.obfuscated.software/jvms/se23/6.5.f2d.md
---

# f2d

## Operation

Convert `float` to `double`

## Format

```
f2d
```

## Forms

*f2d* = 141 (0x8d)

## Operand Stack

..., *value* →

..., *result*

## Description

The *value* on the top of the operand stack must be of type `float`. It is popped from the operand stack and converted to a `double` *result*. The *result* is pushed onto the operand stack.

## Notes

The *f2d* instruction performs a widening primitive conversion (JLS §5.1.2).
