From: Bruce L. Lambert, Ph.D.
Subject: Writing short-floats to binary stream?
Date: 
Message-ID: <5eksjc$1778@piglet.cc.uic.edu>
Hi People,

How do I write anything but an integer (in my case, a short-float) to a
binary stream? Write-byte only takes an integer argument.

Thanks.

Bruce L. Lambert, Ph.D.
Department of Pharmacy Administration
University of Illinois at Chicago
········@uic.edu
http://ludwig.pmad.uic.edu/~bruce/
Phone: +1 (312) 996-2411				
Fax:   +1 (312) 996-0868
From: Ken Anderson
Subject: Re: Writing short-floats to binary stream?
Date: 
Message-ID: <330F5B63.108F@bbn.com>
Bruce L. Lambert, Ph.D. wrote:
> 
> How do I write anything but an integer (in my case, a short-float) to a
> binary stream? Write-byte only takes an integer argument.
>

You can use integer-decode-float to crack the float into pieces and then
use write-byte to output the pieces.