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

# dstore\_\<n>

## Operation

Store `double` into local variable

## Format

```
dstore_<n>
```

## Forms

*dstore_0* = 71 (0x47)

*dstore_1* = 72 (0x48)

*dstore_2* = 73 (0x49)

*dstore_3* = 74 (0x4a)

## Operand Stack

..., *value* →

...

## Description

Both <*n*> and <*n*>+1 must be indices 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 `double`. It is popped from the operand stack and undergoes value set conversion ([§2.8.3](2.8.3.md)), resulting in *value*'. The local variables at <*n*> and <*n*>+1 are set to *value*'.

## Notes

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