MAINT: Convert per share cost to float during init.

The cost value should always be a float.
The per share calculation shouldn't be changed dramatically by being
a float, (except for potential rounding errors), but change to so
that PerShare and PerTrade are aligned.
 # Please enter the commit message for your changes. Lines starting
This commit is contained in:
Eddie Hebert
2013-04-09 11:59:28 -04:00
parent 790e588911
commit 23ff65ad32
+1 -1
View File
@@ -26,7 +26,7 @@ class PerShare(object):
means three cents per share, which is a very conservative
(quite high) for per share costs.
"""
self.cost = cost
self.cost = float(cost)
def calculate(self, transaction):
"""