Use int type for coords when not using long double as dim