mirror of
https://git.wownero.com/wownero/tippero.git
synced 2024-08-15 00:33:14 +00:00
Use decimal functions to read amounts/units from string inputs
This commit is contained in:
parent
8a81397a84
commit
d455985552
8 changed files with 18 additions and 16 deletions
|
@ -49,7 +49,7 @@ def Dice(link,cmd):
|
|||
identity=link.identity()
|
||||
try:
|
||||
amount=float(cmd[1])
|
||||
units=long(amount*coinspecs.atomic_units)
|
||||
units=StringToUnits(cmd[1])
|
||||
multiplier = float(cmd[2])
|
||||
overunder=GetParam(cmd,3)
|
||||
except Exception,e:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue