FAUST compiler  0.9.9.6b8
Functions
doc_Text.hh File Reference
#include <string>
#include <vector>
Include dependency graph for doc_Text.hh:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

string docT (char *c)
string docT (int n)
string docT (long n)
string docT (double n)
 Add a trailing f when converting double-precision numbers to text if single-precision is required NO, this is no more true for LaTeX documentator.

Function Documentation

string docT ( char *  c)

Definition at line 59 of file doc_Text.cpp.

Referenced by DocCompiler::compileLateq(), DocCompiler::generateCode(), DocCompiler::generateIota(), DocCompiler::getFreshID(), and DocCompiler::prepareIntervallicUI().

{ return string(c); }

Here is the caller graph for this function:

string docT ( int  n)

Definition at line 60 of file doc_Text.cpp.

{ char c[64]; snprintf(c, 63, "%d",n);  return string(c); }
string docT ( long  n)

Definition at line 61 of file doc_Text.cpp.

{ char c[64]; snprintf(c, 63, "%ld",n); return string(c); }
string docT ( double  n)

Add a trailing f when converting double-precision numbers to text if single-precision is required NO, this is no more true for LaTeX documentator.

Definition at line 84 of file doc_Text.cpp.

References scientific2tenpow().

{
//    char c[64];
//    if  (n <  0.1 && n > -0.1 && n != 0.0) {
//        //snprintf(c, 63, "%e", n); //, inumix());
//        snprintf(c, 63, "%g", n);
//    } else {
//        snprintf(c, 63, "%g", n);
//        //zdel(c);
//    }
//    return string(c);
    return scientific2tenpow(n);
}

Here is the call graph for this function: