SQLite VDBE opcode

Real

P1 and P3 are combined to 64 bits with P1 being the lower the P3 the upper.

An example

3 of the 178 statements we compiled against the sample database use Real. This is the one with the shortest program; the rows that use Real are highlighted.

SELECT 1.5
addropcodep1p2p3p4p5
0Init0400
1Real0110732175360
2ResultRow1100
3Halt0000
4Goto0100

Open it in the EXPLAIN visualizer →

Also in this program: Goto, Halt, Init, ResultRow.

What the SQLite documentation says

P1 and P3 are combined to 64 bits with P1 being the lower the P3 the upper. The result is interpreted as a 64-bit floating-point and stored in register P2.

From sqlite.org's list of opcodes for SQLite 3.54.1, in the public domain. Opcodes are not a stable interface and change between releases.

← ReadCookie · RealAffinity →