Kamis, 09 Maret 2017

[smf_addin] Digest Number 3938

2 Messages

Digest #3938
1a
Cash value, Y! element 964 by yolande_tulasse
1b
Re: Cash value, Y! element 964 by "Randy Harmelink" rharmelink

Messages

Thu Mar 9, 2017 6:18 am (PST) . Posted by:

yolande_tulasse

Hello Randy,

Hope you're getting much better.

I've noticed a small bug about some companies Total cash value, Y! Finance Element 964
There is a small issue that occurs when the cash value is less than a million dollars.

For instance, if you check the company RNVA.
The Total Cash Value is "514.34k" and not "514.34M".
However, the value returned by RCHGetElementNumber("RNVA";,964) is "514340", instead of "514.34".

Note: the value is also correct when the cash value is in the billion e.g.: for AAPL, the function returns 60640000, which is correct. So the error only occurs when there is a "k" in the value

Cheers,
Yo

Thu Mar 9, 2017 1:58 pm (PST) . Posted by:

"Randy Harmelink" rharmelink

Ahhh. This is a tough call. Originally, when I was doing financial
statements, most were expressed in thousands of dollars, but some still had
the "M" suffix. So I did that as thousands of dollars. When I started
hitting the "B" suffix, I did likewise. It wasn't until some time later I
hit the "K" suffix, but in situations where is should be stated in dollars
and not thousands of dollars. So, yes, unfortunately, the conversions are
not consistent.

Some web sites now express financials in millions of dollars, which is a
related issue.

So, unfortunately, there is no correct was to convert on a quick
extraction, without having a context for the conversion.

There is always the option of using the smfGetTagContent() function to
extract the data, and then doing your own conversion, based on whatever
context you can extract as well.

On Thu, Mar 9, 2017 at 7:18 AM, yolande_tulasse@
​...wrote:

>
> I've noticed a small bug about some companies Total cash value, Y! Finance
> Element 964
> There is a small issue that occurs when the cash value is less than a
> million dollars.
>
> For instance, if you check the company RNVA.
> The Total Cash Value is "514.34k" and not "514.34M".
> However, the value returned by RCHGetElementNumber("RNVA";,964) is
> "514340", instead of "514.34".
>
> Note: the value is also correct when the cash value is in the billion
> e.g.: for AAPL, the function returns 60640000, which is correct. So the
> error only occurs when there is a "k" in the value
>
>
For the Add-in, Documentation, Templates, Tips and FAQs, visit http://ogres-crypt.com/SMF

Tidak ada komentar:

Posting Komentar