Number-to-ByteVector-conversion #44
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "Number-to-ByteVector-conversion"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Number and ByteVector conversions
Adds the following to isa conversions between data types:
NTOBVNumber To ByteVector - takes a mutable memory address with a Number and replaces this value with a ByteVector of the same numerical valueBVTONByteVector To Number - takes a mutable memory address with a ByteVector and replaces this value with a Number of the same numerical value as the ByteVector's valueFixes #43
Number-to-ByteVector-conversionto WIP Number-to-ByteVector-conversion@ -394,0 +398,4 @@n.0 > u8::MAX.into() || n.0 < 0.0 {e!("input to NTOBV cannot cleanly convert");}Datum::ByteVector(n.0.to_bits().to_ne_bytes().to_vec()).into()This is what I need to fix
WIP Number-to-ByteVector-conversionto Number-to-ByteVector-conversiond759937b11to467e1e7188GOOD JOB!