Accept int and float type for grid line width.