#include <string>
#include <vector>
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. |
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().
00085 { 00086 // char c[64]; 00087 // if (n < 0.1 && n > -0.1 && n != 0.0) { 00088 // //snprintf(c, 63, "%e", n); //, inumix()); 00091 // snprintf(c, 63, "%g", n); 00092 // } else { 00093 // snprintf(c, 63, "%g", n); 00094 // //zdel(c); 00095 // } 00096 // return string(c); 00097 return scientific2tenpow(n); 00098 }
string docT | ( | long | n | ) |
Definition at line 61 of file doc_Text.cpp.
string docT | ( | int | n | ) |
Definition at line 60 of file doc_Text.cpp.
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().