Meta Project

The Unofficial Meta Documentation

AS

Summary

AS Converting from BINARY! into other TYPE!

Category

Categoryname

Usage

AS type value

Arguments

type - DATATYPE! value - designated value

Refinements

This method has no refinements

Description

AS is not just for extracting larger numbers from a BINARY! but for more special conversions. When it's supported on a series, it does not COPY the series as TO does. So AS involves efficient type conversions that may be risky

Example Code

it: 42.0
write/line pick unportable as binary! it 1
write/line pick unportable as binary! it size-of it

rows= 100
columns= 100
let memory binary! (to natural! rows) * columns * size-of floater!
poke memory 1 123
write unportable as floater! memory

Result:

6.07700744384733249e-322

Related

PICK  
CHANGE  

Back to the Meta Methods Reference index