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  -  400 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

Time limit
Everyone has a limited time on earth. Are you making full use of your time? Are you truly doing what you want with your limited time? If money is no concern, would you still be working in the same place where you are now? I would not be. Don't get me wrong; I do have a wonderful job. It pays well, management is great, colleagues are awesome and the workplace is always full of fun. The easiest way to ...

Introducing the New Wall
As mentioned in the first article of 2017, one of SGXcafe's focus is to improve mobile engagement. So here we are, with our first baby step. I was never a fan of how SGXcafe's home page was as it did not allow users to easily catch up on the latest happenings since their last visit, and the format was not mobile-friendly. Hence we are introducing a Wall that is inspired by Facebook's feed where all ...

Completed: Phase 2 of Hong Kong Market Integration!
After successfully migrating StocksCafe to the new domain and infrastructure, I have been working on further integration with the Hong Kong Market. Hong Kong Market Integration I am glad to share that phase 2 (of 3) of the Hong Kong Market integration is completed. This means you can now add Hong Kong stocks into your portfolio and/or watchlist, and of course also have access to all the associated ...