X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=mothur.h;fp=mothur.h;h=3b7c4599329aede91be3f6325d27df1accf77c03;hb=d0051dc9939d3477bd92b42c86bcd3eda743b955;hp=57ece6785e1e798e310797b747e6b8d049c0113d;hpb=7f0cae4f4853cc3f12bc751ee06ea31c7c97496e;p=mothur.git diff --git a/mothur.h b/mothur.h index 57ece67..3b7c459 100644 --- a/mothur.h +++ b/mothur.h @@ -189,7 +189,8 @@ void convert(const string& s, T& x, bool failIfLeftoverChars = true){ throw BadConversion(s); } - +//********************************************************************************************************************** +template int sgn(T val){ return (val > T(0)) - (val < T(0)); } //********************************************************************************************************************** template