~cern-kicad/kicad/kicad-pns-tom

« back to all changes in this revision

Viewing changes to include/base_units.h

  • Committer: Maciej Suminski
  • Date: 2013-08-02 13:57:24 UTC
  • mfrom: (4024.1.238 kicad)
  • mto: This revision was merged to the branch mainline in revision 4221.
  • Revision ID: maciej.suminski@cern.ch-20130802135724-gix6orezshkukodv
Upstream merge.

Show diffs side-by-side

added added

removed removed

Lines of Context:
37
37
#include <common.h>
38
38
#include <convert_to_biu.h>
39
39
 
 
40
/** Helper function Double2Str to print a float number without
 
41
 * using scientific notation and no trailing 0
 
42
 * We want to avoid scientific notation in S-expr files (not easy to read)
 
43
 * for floating numbers.
 
44
 * So we cannot always just use the %g or the %f format to print a fp number
 
45
 * this helper function uses the %f format when needed, or %g when %f is
 
46
 * not well working and then removes trailing 0
 
47
 */
 
48
std::string Double2Str( double aValue );
 
49
 
40
50
/**
41
51
 * Function StripTrailingZeros
42
52
 * Remove trailing 0 from a string containing a converted float number.