internal static object GetIndexObject(double d) { int i = (int)d; if (i == d) { return Sharpen.Extensions.ValueOf(i); } return ToString(d); }