[Search for users] [Overall Top Noters] [List of all Conferences] [Download this site]

Conference 7.286::atarist

Title:Atari ST, TT, & Falcon
Notice:Please read note 1.0 and its replies before posting!
Moderator:FUNYET::ANDERSON
Created:Mon Apr 04 1988
Last Modified:Tue May 06 1997
Last Successful Update:Fri Jun 06 1997
Number of topics:1433
Total number of notes:10312

768.0. "ftoa in MEGAMAX" by LYOIS2::BUFFELLO () Mon Feb 12 1990 05:52

    
    
    I am primer in megamax c and to take some acknolegment i rewrite
    some program examples.But  i find some trouble with an instruction
    		'ftoa '.can somebody help me about it.i had found
    in library atof but not ftoa.is it possible to send me the ftoa.o
    and so i will put it in library.
    thank
T.RTitleUserPersonal
Name
DateLines
768.1Can use 'sprintf'MARVIN::FORSTERMon Feb 12 1990 09:129
    I'm not sure 'ftoa' is a standard function. However, the standard 
    'sprintf' function will give you the desired functionality. 
    e.g to convert floating-point value x to it's ascii representation : 
    
    char buf [20];
    float x = 12.345;
    
    sprintf ( &buf,"%f",x );