home *** CD-ROM | disk | FTP | other *** search
- Path: mn5.swip.net!usenet
- From: roland.bengtsson@mbox3.swipnet.se (Roland Bengtsson)
- Newsgroups: comp.sys.amiga.programmer
- Subject: Convert ASCII to IEEE
- Date: 1 Jan 1996 16:33:13 GMT
- Organization: -
- Message-ID: <1055.6574T1047T1274@mbox3.swipnet.se>
- NNTP-Posting-Host: dialup102-125.swipnet.se
- X-Newsreader: THOR 2.22 (Amiga;TCP/IP) *UNREGISTERED*
-
- Are there an easy way to read a stringgadget (ASCII) and then convert it to
- double IEEE-format. The only solution I found was first convert it fo FFP with afp()
- then to IEEE with SPTieee(), then to double IEEE with IEEEDPFieee() :-(
-
- Like this:
-
- double str2ie(UBYTE *string)
- {
- return(IEEEDPFieee(SPTieee(afp(string))));
- }
-
- If I have understand this, SAS/C floating point is the same as Motorolas FFP, but
- for other reasons I can't use FFP.
-
- Any suggestions are welcome!
-
-
- --
- \|/
- Thor 2.22 @ @
- +-------------------------oOO-(_)-OOo----------+
- |Amigaowner | |
- |since 1988 |BBS: O C C B B S +46-35-187450 |
- | _ |Fidonet> 2:203/802.6 |
- | _ // | |
- | \X/ |Falkenberg, Westcoast of Sweden |
- |A3000/10MB | |
- |280HD/28.8 |Please write where YOU live! |
- +-----------+----------------------------------+
- AMIGA - Multimedia, Preemptive Multitasking
- Plug'n'Play since 1985.
-
-
-