A question posted in xbrl-dev, about consistency-assertion's @decimlas = "INF"
来源:互联网 发布:知乎客户端pc版 编辑:程序博客网 时间:2024/04/30 01:51
A question about formula consistency-assertion, how to handle "INF" precision?
<!--
If the two facts have data types that are numeric, and their data types are not
xbrli:fractionItemType or derived from the xbrli:fractionItemType, and the
acceptance radius is not defined, then they are only consistent if the numeric
values A and B are x-equal where A is obtained by rounding the value of the
first fact to N significant figures and B is obtained by rounding the value of
the second fact to N significant figures noting that N is the lower of the
specified or inferred precision for the first fact and the specified or inferred
precision for the second fact.
-->
Some companies use @decimals="INF" for every item, for example:
<c:A decimals="INF">1</c:A>
<c:B decimals="INF">3</c:B>
<c:PercentAB decimals="INF">0.3333</c:PercentAB> <<<< Input.PercentAB
In our formula linkbases, we use consistency assertion to check:
A / B = PercentAB
define formula's expression "A div B" to output derived fact:
<c:PercentAB>0.333333</c:PercentAB> <<<< Derived.PercentAB
we don't know the Input.PercentAB's @decimals value, so we can output two kind
of derived facts:
<c:PercentAB decimals="6">0.333333</c:PercentAB> <<<< Derived.PercentAB.1 Non
INF @decimals
<c:PercentAB decimals="INF">0.333333</c:PercentAB> <<<< Derived.PercentAB.2 INF
@decimals
A: If we output the @decimals gt the input @decimals, assertion NOT satisfied.
0.333333 (derived) <> 0.3333 (input)
B: if we output the @decimals eq "INF", assertion NOT satisfied:
0.333333 (derived) <> 0.3333 (input)
C: if we output the @decimals (3) le the input @decimals, assertion satisfied.
0.333 (derived) = 0.333 (input) // for select the lower precision.
So when we process this kind @decimals ("INF"). we calculate the lexical
precision, and select the lower precision to compare the two value.
0.3333 (derived) = 0.3333 (input) // lower decimals = 4
Please talk about, and get a more reasonable process model!
Thank you!
- A question posted in xbrl-dev, about consistency-assertion's @decimlas = "INF"
- A question about PHP
- A question about utime
- a question about SILK:
- Answer's Question about pointer
- A question about prime pairs
- Read Consistency question
- Ridiculous question in HackerRank about Day 27
- A question about SCRIPR5009: xxxx is undefined
- A Question about Jasper Report Deployment
- my self-examination about Miss.Yu's question
- resolve the question about ant and junit in eclipse
- The Question about Norm of Vector in MIMO
- C# or Java ,it's a question?
- 语法 or 算法,it's a question!
- a nice article about /dev/urandom vs /dev/random
- About relationships in a database
- To Be a Coder or Not, That's a Question!
- 初到北京
- 一句话技巧:Asp.Net后置代码中输入JS提示语句(背景不会变白)
- jsp + javabean + servlet写的MVC
- (转)可以带来幸福的一本书
- PKU 3436 ACM Computer Factory
- A question posted in xbrl-dev, about consistency-assertion's @decimlas = "INF"
- DES算法
- PHP
- loadrunner 完全卸载
- php的mysql函数
- Js事件大全,
- 获取电话名录的九种方法
- 独家:.NET开发人员必知的八个网站
- java版本的escape和unescape函数