🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.amiga.tech
Article #2135

FFP -> ASCII

#2135
From: Eduardo Horvath
Date: Tue, 14 Nov 1989 19:31
18 lines
1510 bytes
	Does anyone have code that converts an FFP number to an ASCII string
like sprintf(buf,"%f",var); without requiring a 71 byte buffer to expand the
number in?  I want to do this without including all of the Lattice libraries
and Amiga.lib.  I will be implementing this in assembly (although I will
accept C code) and don't need any excess fluff.  I have found that lc.lib
does not support "%f" conversion, lcffp.lib requires lc.lib and amiga.lib,
and fpa in amiga.lib always returns E notation.

===============================================================================
         //x                                    =
        /// \	Try:  33014-18@sjsumcs.SJSU.EDU =	Early to bet
       ///   \                                  =	And early to raise
      ///     \		Eduardo Horvath		=	Makes a man poor
\\\  ///=======\ 				=	In a gambling craze!
 \\\///         \				=		-me
  \xxx           \miga. The computer for the corruptive mind.
===============================================================================
Technical Details
Message-ID: <1989Nov14.193153.8640@sjsumcs.sjsu.edu>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!ucsd!usc!apple!vsi1!octopus!sjsumcs!33014-18

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!ucsd!usc!apple!vsi1!octopus!sjsumcs!33014-18
From: 33014-18@sjsumcs.sjsu.edu (Eduardo Horvath)
Newsgroups: comp.sys.amiga.tech
Subject: FFP -> ASCII
Summary: How do you convert FFP to ASCII
Message-ID: <1989Nov14.193153.8640@sjsumcs.sjsu.edu>
Date: 14 Nov 89 19:31:53 GMT
Reply-To: 33014-18@sjsumcs.SJSU.EDU (Eduardo Horvath)
Distribution: comp.amiga.tech
Organization: San Jose State University
Lines: 18