Skip to content

Type Casting (Conversion)

These instructions facilitate explicit data type conversion within the LightVM environment. These opcodes are essential for managing variable precision and ensuring that data formats align with expected operational requirements during runtime execution.

OpcodeOperands (stack)Description
to_shortvalChange value to Short (16-bit)
to_integervalChange value to Integer (32-bit)
to_longvalChange the value to Long (64-bit)
to_octavalChange value to Octa (128-bit Integer)
to_halfvalChange value to Half-precision (16-bit Float)
to_floatvalChange value to Float (32-bit)
to_doublevalChange the value to Double (64-bit)
to_stringvalChange the value to String

Released under the Apache-2.0 License.