Skip to content

Commit

Permalink
Update Numeric.cs
Browse files Browse the repository at this point in the history
  • Loading branch information
burdoto committed Jan 14, 2023
1 parent 9f373dc commit d4a433f
Showing 1 changed file with 25 additions and 25 deletions.
50 changes: 25 additions & 25 deletions kscr-core/Std/Numeric.cs
Original file line number Diff line number Diff line change
Expand Up @@ -639,31 +639,6 @@ public IObjectRef OpCircumflex(RuntimeBase vm, Numeric right)
return rev;
}

public override string ToString()
{
return ToString(0);
}

public static string CreateKey(string num)
{
return "num:" + num;
}

public static string CreateKey(long num)
{
return CreateKey(num.ToString());
}

public static string CreateKey(float num)
{
return CreateKey(num.ToString(CultureInfo.InvariantCulture));
}

public static string CreateKey(double num)
{
return CreateKey(num.ToString(CultureInfo.InvariantCulture));
}

public IObjectRef Sqrt(RuntimeBase vm)
{
switch (Mode)
Expand Down Expand Up @@ -735,6 +710,31 @@ public IObjectRef Tan(RuntimeBase vm)
throw new ArgumentOutOfRangeException();
}
}

public override string ToString()
{
return ToString(0);
}

public static string CreateKey(string num)
{
return "num:" + num;
}

public static string CreateKey(long num)
{
return CreateKey(num.ToString());
}

public static string CreateKey(float num)
{
return CreateKey(num.ToString(CultureInfo.InvariantCulture));
}

public static string CreateKey(double num)
{
return CreateKey(num.ToString(CultureInfo.InvariantCulture));
}
}

public sealed class IntN : IObject
Expand Down

0 comments on commit d4a433f

Please sign in to comment.