i can't for the life of me figure out why i wrote this FNKSHN! what
problem does it fix? i can't think of any. i remember writing it because
i needed it but i can't figure out why? it is used by other FNKSHNs and
apps that i've written so i won't get rid of it. but i just don't know why
i wrote it. STR() seems to work fine. i think.
* FNKSHN 1.01
* FSTR(<number>)
*
* returns a floating point character value of <number>.
*
procedure fstr
parameters lnnum
private lnnum, lnint, lndec, lcdec, lcfstr
if type("LNNUM")!="N"
return ""
endif
lcfstr=alltrim(str(lnnum,237,18))
lcdec=substr(lcfstr,at(".",lcfstr)+1)
if val(lcdec)=0
lcfstr=substr(lcfstr,1,at(".",lcfstr)-1)
else
do while right(lcfstr,1)="0"
lcfstr=left(lcfstr,len(lcfstr)-1)
enddo
endif
return lcfstr
---------------------------------------------------------------------------
perry fect, president Author of the *FREE* FNKSHN library for
UnderGround Milhouse Studios FoxPro 2.x
PO Box 320411 for more details, check the page below
Fairfield, CT 06432
http://w3.nai.net/~perfecto/fnkshn.html