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  -  3,804 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

5 Things You Can Do To Create A More Vibrant SGXCafe
By now, you have probably noticed that SGXcafe recently started a "Cafe". It is a place where people can ask questions or discuss anything related to investment. It also includes blog posts aggregated from blogs mainly from Singapore that are sharing financial/investment knowledge and information. Special thanks goes to Derek from TheFinance.sg for helping me to get permission from each blogger to ...

Dividend Strength Estimator
Like many others, I enjoy buying stocks that pay good dividends. The challenge is in identifying companies that will be able to pay good dividends year after year. Many might suggest reading through years of financial statements, as well as getting to know the top management and their vision for the company as it is the ideal way of projecting its future cashflow and thus, dividends. I do agree that ...

Watchlist Improvements and More
Just wanted to share what's going on behind the scenes at StocksCafe lately. 1) More Stable I am happy to share that since the infrastructure improvements (to two web servers) a month ago, there have been no known downtime (no complains from users and no logs suggesting that) for StocksCafe website. Once in a while, one server would go down but the second server would keep StocksCafe running. 2) Faster ...