CashRatio
简述
现金比(%)=货币资金/资产总计*100。
函数从合并资产负债表取货币资金和资产总计,根据算法就得到现金比(%)。
CashRatio(ReportDate:Integer):Real
名称 | 类型 | 说明 |
---|
ReportDate | Integer | 整数,报告期。 |
返回 | Real | 实数,现金比(%),百分数。 |
//指定2011年报,取万科A现金比(%)
oV:=BackUpSystemParameters2();
setsysparam(pn_stock(),'SZ000002');
v:=CashRatio(20111231);
return v;
//结果:11.56