Function has_minus_sign (o2scl)¶
-
bool
o2scl
::
has_minus_sign
(double *x)¶ Find out if the number pointed to by
x
has a minus sign.This function returns true if the number pointed to by
x
has a minus sign, determining this by converting the number to a string. It is useful, for example, in distinguishing “-0.0” from “+0.0”.