1 #ifndef MATHEMATICAL_OPERATIONS_GROUP
2 #define MATHEMATICAL_OPERATIONS_GROUP
41 template <
class numeric_type>
43 { t = numeric_type(5.1); t = numeric_type(t * 3.0);
47 template <
class numeric_type>
54 template <
class numeric_type>
55 bool is_short(numeric_type) {
return sizeof(numeric_type) == 2; }
58 template <
class numeric_type>
61 template <
class numeric_type>
68 template <
class numeric_type>
Provides a dynamically resizable ASCII character string.
void insert(int position, const astring &to_insert)
Copies "to_insert" into "this" at the "position".
type absolute_value(type a)
Returns a if a is non-negative, and returns -a otherwise.
Contains all of our objects for geometry and avoids name clashes.
bool is_signed(numeric_type t)
returns true if the templated type is signed.
bool is_floating_point(numeric_type t)
returns true if the specified numeric_type is a floating_point type.
bool is_unsigned(numeric_type t)
returns true if the templated type is unsigned.
basis::astring numeric_specifier(numeric_type t)
Guesses the formatting string needed for the type provided.
astring crop_non_numeric(const astring &input)
Eats the non-numeric characters from the front of "input".
astring crop_numeric(const astring &input)
Eats the numeric characters from the front of "input".
bool is_integral(numeric_type t)
returns true if the instantiation type is an integer.
bool is_short(numeric_type)
returns true if the specified type is short on the PC.