---
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.fstore_n"
heading: "fstore_<n>"
parent: "6.5. Instructions"
source: https://docs.oracle.com/javase/specs/jvms/se23/html/jvms-6.html#jvms-6.5.fstore_n
id: "6.5.fstore_n"
url: https://jvm.obfuscated.software/jvms/se23/6.5.fstore_n.html
raw: https://jvm.obfuscated.software/jvms/se23/6.5.fstore_n.md
---

# fstore\_\<n>

## Operation

Store `float` into local variable

## Format

```
fstore_<n>
```

## Forms

*fstore_0* = 67 (0x43)

*fstore_1* = 68 (0x44)

*fstore_2* = 69 (0x45)

*fstore_3* = 70 (0x46)

## Operand Stack

..., *value* →

...

## Description

The <*n*> must be an index into the local variable array of the current frame ([§2.6](2.6.md)). The *value* on the top of the operand stack must be of type `float`. It is popped from the operand stack, and the value of the local variable at <*n*> is set to *value*.

## Notes

Each of the *fstore\_\<n>* instructions is the same as *fstore* with an *index* of <*n*>, except that the operand <*n*> is implicit.
