[Webfunds-commits] java/webfunds/ricardian Currency.java
Ian Grigg
iang@cypherpunks.ai
Fri, 6 Apr 2001 18:37:33 -0400 (AST)
iang 01/04/06 18:37:33
Modified: webfunds/ricardian Currency.java
Log:
All units of account/contracts utilities are now in Units, not Support.
Revision Changes Path
1.11 +5 -5 java/webfunds/ricardian/Currency.java
Index: Currency.java
===================================================================
RCS file: /home/webfunds/cvsroot/java/webfunds/ricardian/Currency.java,v
retrieving revision 1.10
retrieving revision 1.11
diff -u -r1.10 -r1.11
--- Currency.java 2000/11/09 13:19:28 1.10
+++ Currency.java 2001/04/06 22:37:33 1.11
@@ -1,5 +1,5 @@
/*
- * $Id: Currency.java,v 1.10 2000/11/09 13:19:28 iang Exp $
+ * $Id: Currency.java,v 1.11 2001/04/06 22:37:33 iang Exp $
*
* Copyright (c) Systemics Ltd 1995-1999 on behalf of
* the WebFunds Development Team. All Rights Reserved.
@@ -33,10 +33,10 @@
if (s != null && s.length() > 0)
{
// System.err.println("got new power: " + s);
- int p = Support.powerInt(s);
+ int p = Units.powerInt(s);
// System.err.println("set new power: " + p);
setPower(p);
- this.factor = Support.power2factorDouble(p);
+ this.factor = Units.power2factorDouble(p);
return ;
}
@@ -46,9 +46,9 @@
"currency must have power or factor");
// found the old factor, last chance!
- this.factor = Support.factorDouble(s);
+ this.factor = Units.factorDouble(s);
// try {
- int p = Support.factor2powerInt(this.factor);
+ int p = Units.factor2powerInt(this.factor);
setPower(p);
// } catch (ContractException ex) {
// System.err.println("not a power: " + ex);