31 |
31 |
32 // Prime numbers |
32 // Prime numbers |
33 extern const int g_primes[NUM_PRIMES]; |
33 extern const int g_primes[NUM_PRIMES]; |
34 |
34 |
35 // Returns whether a given string represents a floating point number. |
35 // Returns whether a given string represents a floating point number. |
36 bool isNumber (const str& tok); |
36 bool numeric (const str& tok); |
37 |
|
38 // Converts a float value to a string value. |
|
39 str ftoa (double num); |
|
40 |
|
41 double atof (str val); |
|
42 |
37 |
43 // Simplifies the given fraction. |
38 // Simplifies the given fraction. |
44 void simplify (int& numer, int& denom); |
39 void simplify (int& numer, int& denom); |
45 |
40 |
46 str join (initlist<StringFormatArg> vals, str delim = " "); |
41 str join (initlist<StringFormatArg> vals, str delim = " "); |