GrossProfitRatio
简述
主营毛利率(%)=(主营业务收入-主营业务成本)/主营业务收入*100。
函数从合并利润分配表中取主营业务率、主营业务成本,根据算法得到主营毛利率(%)【注1】。
GrossProfitRatio(ReportDate:Integer):Real
ReportDate:整数,报告期。
返回:实数,主营毛利率(%),百分数。
范例:
//指定2011年报,取万科A主营毛利率(%)
oV:=BackUpSystemParameters2();
setsysparam(pn_stock(),'SZ000002');
v:=GrossProfitRatio(20111231);
return v;
//结果:39.78
FinancialItemRatio