From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Rohan Drape Newsgroups: gmane.lisp.guile.user Subject: binary representation of numbers Date: Sun, 2 Feb 2003 20:36:11 +1100 Sender: guile-user-bounces+guile-user=m.gmane.org@gnu.org Message-ID: <200302022036.11256.rd@alphalink.com.au> Reply-To: rd@alphalink.com.au NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable X-Trace: main.gmane.org 1044233079 22965 80.91.224.249 (3 Feb 2003 00:44:39 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Mon, 3 Feb 2003 00:44:39 +0000 (UTC) Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 18fUj0-0005yH-00 for ; Mon, 03 Feb 2003 01:44:38 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 18fUib-00022s-0C for guile-user@m.gmane.org; Sun, 02 Feb 2003 19:44:13 -0500 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13) id 18fUiF-0001y2-00 for guile-user@gnu.org; Sun, 02 Feb 2003 19:43:51 -0500 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13) id 18fUiD-0001uh-00 for guile-user@gnu.org; Sun, 02 Feb 2003 19:43:50 -0500 Original-Received: from mail2.alphalink.com.au ([202.161.124.194]) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 18fUiC-0001q3-00 for guile-user@gnu.org; Sun, 02 Feb 2003 19:43:48 -0500 Original-Received: from localhost.localdomain (d416-ps3-mel.alphalink.com.au [202.161.98.36]) by mail2.alphalink.com.au (8.12.5/8.9.3) with ESMTP id h130hd13007034 for ; Mon, 3 Feb 2003 11:43:40 +1100 Original-To: guile-user@gnu.org User-Agent: KMail/1.4.1 X-BeenThere: guile-user@gnu.org X-Mailman-Version: 2.1b5 Precedence: list List-Id: General Guile related discussions List-Help: List-Post: List-Subscribe: , List-Archive: List-Unsubscribe: , Errors-To: guile-user-bounces+guile-user=m.gmane.org@gnu.org Xref: main.gmane.org gmane.lisp.guile.user:1593 X-Report-Spam: http://spam.gmane.org/gmane.lisp.guile.user:1593 Hello All, I have searched the documentation but cannot find procedures to convert=20 between scheme numbers and common machine byte representations. I need=20 something equivalent to the PLT procedures: (integer-byte-string->integer string signed? [big-endian?]) (integer->integer-byte-string n size-n signed? [big-endian? to-string]) (floating-point-byte-string->real string [big-endian?]) (floating-point-byte-string->real string [big-endian?]) which assume of course that strings are byte vectors. These are required= to=20 implement a simple byte protocol over UDP. I am sure this is `under my n= ose'=20 but I cannot find it, any pointers would be appreciated. Regards, Rohan _______________________________________________ Guile-user mailing list Guile-user@gnu.org http://mail.gnu.org/mailman/listinfo/guile-user