CALCULATE YOUR SIP RETURNS

Fixing of Invested Value Mismatch due to Decimal Precision

Written by: Team Angel OneUpdated on: 19 Dec 2025, 7:13 pm IST
Decimal rounding caused a mismatch between invested value in the portfolio and total invested value from stock transactions. This is now resolved.
fixing of invested value mismatch
ShareShare on 1Share on 2Share on 3Share on 4Share on 5

Overview of the Issue

Earlier, some users noticed a mismatch between the total invested amount (sum of all buy transactions) and the invested value displayed on the Portfolio and Transaction screens.

This mismatch occurred because of the calculation method used:

  1. We added the invested amounts from all buy transactions of a stock.
  2. We divided this total by the total quantity to calculate the Weighted Average Price (WAP).
  3. The WAP was rounded to two decimals.
  4. The rounded WAP was then multiplied with the quantity received from the CDSL file to display the invested value.

When the quantity was large, even a minor rounding difference resulted in a noticeable mismatch in the final invested value.

Resolution

  • We now avoid rounding the WAP after calculation.
  • The full-precision WAP is multiplied with the CDSL quantity.
  • Only the final invested value is rounded for display.

This ensures the displayed invested value exactly matches the sum of all transactions.

Example

A. Transaction Details

DateQtyAvg PriceAmount
20/6/2535,36283.7529,61,699.15
20/6/364,73286.5256,00,832.73
20/6/45,13287.754,50,352.11
20/6/524,15285.3620,61,704.08
20/6/625,37691.8523,30,663.80
Total154,7541,34,05,251.87

B. Weighted Average Price (WAP)

DescriptionValue
Total Invested Amount1,34,05,251.87
Total Quantity1,54,754
WAP (unrounded)86.62297495
WAP rounded (old method)86.62

C. Invested Value Shown

ProcessFormulaDisplayed Value
Old Method (round WAP → multiply)86.62 × 154,7541,34,04,791.48
New Method (use full-precision WAP)86.62297495 × 154,7541,34,05,251.87

D. Difference

ItemAmount
Mismatch due to rounding₹460.39

Disclaimers: 
 
“This is for educational /Informational purposes only.” 
“Investments in securities market are subject to market risks, read all the related documents carefully before investing” 
“Mutual Fund investments are subject to market risks, read all scheme related documents carefully”

“Past performance is no guarantee of future results. ” 
“Mutual Funds do not have a fixed rate of return, and it is not possible to predict the rate of return”

Published on: Dec 19, 2025, 12:14 PM IST

Team Angel One

Team Angel One is a group of experienced financial writers that deliver insightful articles on the stock market, IPO, economy, personal finance, commodities and related categories.

Know More

We're Live on WhatsApp! Join our channel for market insights & updates

Open Free Demat Account!

Join our 3 Cr+ happy customers

+91
Enjoy Zero Brokerage on Equity Delivery
4.4 Cr+DOWNLOADS
Enjoy ₹0 Account Opening Charges

Get the link to download the App

Get it on Google PlayDownload on the App Store
Open Free Demat Account!
Join our 3 Cr+ happy customers