sir4ju1 / stock-portfolio-manager

Automatically exported from code.google.com/p/stock-portfolio-manager
0 stars 0 forks source link

really small number leads to NAN or bufferrOverflow #46

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
I entered a transaction with
Price: 0.00001
Quanity: 10

Because the real price stock is a lot higher (say 20$), the calculated profit 
exceeds the capacity (assumption) + the database produce an error ehen saving 
the transaction.

Original issue reported on code.google.com by alex.bel...@gmail.com on 5 Aug 2011 at 9:14

GoogleCodeExporter commented 8 years ago
The result value is verified before being displayed. If the value is too big, 
the word "infinite" is displaye instead.

Original comment by alex.bel...@gmail.com on 15 Aug 2011 at 12:22

GoogleCodeExporter commented 8 years ago

Original comment by alex.bel...@gmail.com on 15 Aug 2011 at 12:35