private static float getPercent(CellAttributes attributes) { return attributes.RowData.Value == null ? 0 : float.Parse(attributes.RowData.Value.ToSafeString(), CultureInfo.InvariantCulture); }