summaryrefslogtreecommitdiff
path: root/src/cli/runtime/Num.cs
diff options
context:
space:
mode:
authorRich Hickey <richhickey@gmail.com>2006-06-10 21:18:14 +0000
committerRich Hickey <richhickey@gmail.com>2006-06-10 21:18:14 +0000
commitfa698dcab12e029587f1b79f5b99cc4b1cd50a01 (patch)
tree8f6475343481845073a9262ab6638ab0cbae978f /src/cli/runtime/Num.cs
parentac65dac6b044e965d244e78ee5f7d49a62440c92 (diff)
finished tld purge, moved to wide dynamic binding on Vars
Diffstat (limited to 'src/cli/runtime/Num.cs')
-rw-r--r--src/cli/runtime/Num.cs16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/cli/runtime/Num.cs b/src/cli/runtime/Num.cs
index 682381f1..8758b198 100644
--- a/src/cli/runtime/Num.cs
+++ b/src/cli/runtime/Num.cs
@@ -153,23 +153,23 @@ abstract public Num divide(BigInteger x);
abstract public Num divide(RatioNum x);
-static public Object truncate(ThreadLocalData tld, Object num, Object div)
+static public Object truncate( Object num, Object div)
{
- return Num.from(div).truncateDivide(tld, Num.from(num));
+ return Num.from(div).truncateDivide( Num.from(num));
}
-abstract public Object truncateDivide(ThreadLocalData tld, Num rhs);
+abstract public Object truncateDivide( Num rhs);
-abstract public Object truncateBy(ThreadLocalData tld, int x);
+abstract public Object truncateBy( int x);
-abstract public Object truncateBy(ThreadLocalData tld, BigInteger x);
+abstract public Object truncateBy( BigInteger x);
-abstract public Object truncateBy(ThreadLocalData tld, RatioNum x);
+abstract public Object truncateBy( RatioNum x);
-static public Object truncateBigints(ThreadLocalData tld, BigInteger n, BigInteger d)
+static public Object truncateBigints( BigInteger n, BigInteger d)
{
BigInteger[] result = n.divideAndRemainder(d);
- return RT.setValues(tld, Num.from(result[0]), Num.from(result[1]));
+ return RT.setValues( Num.from(result[0]), Num.from(result[1]));
}
internal static BigInteger BIG_ONE = BigInteger.valueOf(1);