parse dimension to Number