Add instruction definition for number to bytevector conversion

This commit is contained in:
Kolby Heacock 2025-11-29 20:28:34 -07:00 committed by Ava Apples Affine
parent 5582da5b41
commit 18770575cb

View file

@ -641,6 +641,20 @@ character byte.
Requires mutable access to input address.
"""
[[instructions]]
name = "ntobv"
args = ["src"]
output = ""
description = """
The ntobv instruction accepts a single number input. This operand is overwritten
by a new number datum that represents the inexact form of the source number.
The inexact form is a normalization of fraction or scientific notation datum to
float datum casted to ByteVector datum.
Requires mutable access to input address.
"""
[[instructions]]
name = "ntoc"
args = ["src"]