Decimal Rounding Rule

67 views
Skip to first unread message

kai

unread,
Jun 13, 2007, 1:55:37 PM6/13/07
to AdWords API Forum
Hi, I wonder what's the rounding rule for decimal number.

Does Adwords follow the standard to round up when it's >= 5 and round
down when it's < 5?


for example, the rounding may happen during the calculation of avg
cpc, click through rate.

Thanks.
Kai

yu...@adscale.com

unread,
Jan 28, 2019, 2:09:47 PM1/28/19
to AdWords API and Google Ads API Forum
I have an issue where my Avg. CPC  is 2.985 and it is shown as 2.98.

googleadsapi...@google.com

unread,
Jan 30, 2019, 1:57:08 PM1/30/19
to AdWords API and Google Ads API Forum
Hello Yurii,

In this support channel we will discuss technical issues via email only. Average cost-per-click (Avg. CPC) is calculated by dividing the total cost of your clicks by the total number of clicks. The Average CPC field is rounded when you see from the UI. However, on the API reports it will be shown in the micro amounts(non- rounded values). I have observed from the UI that AdWords rounding off the values to lower bound when the number after the 2nd decimal is <=5 and round off to higher bound when the number after the 2nd decimal values >5. Which says when the avg cpc is 2.98222 it will be rounded to 2.98, when the avg cpc is 2.9856 it will be rounded to 2.99 and when the number is 2.9855 then it will be rounded as 2.98. Hope this clarifies your concern. Please let me know if you have any further questions.

Regards,
Sai Teja, AdWords API Team


=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and discussion group:
    http://googleadsdeveloper.blogspot.com/search/label/adwords_api
    https://developers.google.com/adwords/api/community/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

Was your question answered? Please rate your experience with us by taking a short survey.
If not -- reply to this email and tell us what else we can do to help.

Take Survey

Also find us on our blog and discussion group:
http://googleadsdeveloper.blogspot.com/search/label/adwords_api
https://developers.google.com/adwords/api/community/

Reply all
Reply to author
Forward
0 new messages