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  -  2,423 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

Updates: Visualization, Watchlist Limit, and Renamed Stocks
A quick update on a few tweaks around SGXcafe. One of the top feature requests recently in SGXcafe is having more visualization. Specifically, the ability to see at a glance how much dividends you receive monthly (against other years) historically and pie charts to see your portfolio's breakdown by sector, industry and companies. Feel free to suggest more if there is other information you'd like to ...

Facebook for Investor
Note: This feature have since been removed due to low usage. We all have a limited amount of time. Are you spending that time wisely? And are you spending more time than you should be scrolling through Facebook? I am :( In an attempt to change that, I thought that if I'm going to scroll through something on my phone, I might as well be scrolling through information on companies that I have invested ...

Updates: Day Change and Screener Email
This is a quick updates of two changes that I thought would be important/useful to communicate to everyone. Day Change Computation Previously, the day change shown on the main page of your personal portfolio was computed naively. It was simply how many shares of a stock you own at the end of the day multiply by the change in price (TodayClose - YesterdayClose). DayChangeForAStockPreviously = SharesYouOwnAtEndOfDay ...