From: Rohan Drape <rd@alphalink.com.au>
Subject: binary representation of numbers
Date: Sun, 2 Feb 2003 20:36:11 +1100 [thread overview]
Message-ID: <200302022036.11256.rd@alphalink.com.au> (raw)
Hello All,
I have searched the documentation but cannot find procedures to convert
between scheme numbers and common machine byte representations. I need
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
implement a simple byte protocol over UDP. I am sure this is `under my nose'
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
next reply other threads:[~2003-02-02 9:36 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-02-02 9:36 Rohan Drape [this message]
2003-02-03 15:39 ` binary representation of numbers Mikael Djurfeldt
2003-02-04 8:24 ` Rohan Drape
2003-02-05 7:53 ` Mikael Djurfeldt
-- strict thread matches above, loose matches on Subject: below --
2003-10-14 14:16 Thien-Thi Nguyen
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/guile/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=200302022036.11256.rd@alphalink.com.au \
--to=rd@alphalink.com.au \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).