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

# dstore

## Operation

Store `double` into local variable

## Format

```
dstore
index
```

## Forms

*dstore* = 57 (0x39)

## Operand Stack

..., *value* →

...

## Description

The *index* is an unsigned byte. Both *index* and *index*+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. The local variables at *index* and *index*+1 are set to *value*.

## Notes

The *dstore* opcode can be used in conjunction with the *wide* instruction ([§*wide*](6.5.wide.md)) to access a local variable using a two-byte unsigned index.
