Close for now Do you hold SG, US, HK or MY stocks? How are you tracking them now?
View our Demo portfolio to learn how StocksCafe will do it for you intelligently!
Sign up for free now!

Subscribe to RSS feed Shares Quantity Now Supports Decimal Values!

By Evankoh posted on 10 Aug 2018  -  12,941 views


Firstly, I would like to apologize to users who were affected by this "migration" last night and seeing errors on many StocksCafe pages. I was making a seemingly simple change, but is actually more complicated. I was making a database change for the field "shares quantity" from only accepting whole numbers (i.e. integers) to allow decimal values (i.e. floats). As integers and floats are considered different beasts (at least in Java), StocksCafe's code needed to be significantly changed since "shares quantity" is used in numerous places.

It should be fine now, but please report if you see any issues.

The main motivation for this change was because it was requested by Friends of StocksCafe, and their reasoning is that with robo-advisor and regular share-buying schemes, partial shares are often being transacted. With the growing popularity of such approaches, it is only reasonable that StocksCafe also starts to support decimal values for shares quantity to keep up with times :)

Thank you all for continuously helping StocksCafe improve!

Happy investing!


Like
5 likes
0 comments



Next Article > < Previous Article
Regularly Export Your StocksCafe ... StocksCafe Now Fully Supports US ...



List All Articles Other articles by Evankoh

Refer & Get Limited Edition StocksCafe T-shirts!
Happy Lunar New Year! As you might know, one of the main objectives of StocksCafe this year is to grow. So as you are sharing/talking about your financial freedom journey with your friends and family during this festive season, it would be great if you could also take this opportunity to share the tool/website that hopefully helped a little in your journey :) Token of Appreciation For every person ...

Share Your Portfolio Selectively
Our portfolios are very personal and sensitive information. While many users have generously shared them publicly, many more are not comfortable with opening up their portfolio and share with just anyone who visits sgxcafe.com. This is totally understandable. Even I only share my portfolio partially (portfolio is displayed without exact values). Hence, I have recently added a followers/following mechanism ...

How Much is a Stock Worth?
Recently, I read a book, A Random Walk Down Wall Street by Burton G. Malkiel. In the book, he discussed two ways to valuate a stock - The firm-foundation theory and the castle-in-the-air theory. The firm-foundation theory assumes that each stock has a true value which is equal to the present value of all its future dividends. It is likely that you have heard something similar because this approach ...