Rhino.ScriptRuntime.GetIndexObject C# (CSharp) Method

GetIndexObject() static private method

If d is exact int value, return its value wrapped as Integer and othewise return d converted to String.
If d is exact int value, return its value wrapped as Integer and othewise return d converted to String.
static private GetIndexObject ( double d ) : object
d double
return object
		internal static object GetIndexObject(double d)
		{
			int i = (int)d;
			if (i == d)
			{
				return Sharpen.Extensions.ValueOf(i);
			}
			return ToString(d);
		}

Same methods

ScriptRuntime::GetIndexObject ( string s ) : object
ScriptRuntime