#pragma once
 
 namespace math {
 
 template<typename T>
 inline int sgn(T t) {
	return t == 0 ? 0 : t > 0 ? 1 : -1;
 }
 
 }