XML 101 R67.htm IDEA: XBRL DOCUMENT
v3.8.0.1

Earning Per Share (Tables) | 12 Months Ended
--- | ---
Dec. 31, 2017
Text block1 [abstract] |
Summary of Earnings Per Share | The following table shows the net income and the number of shares that have been used for the calculation of the basic and diluted earnings per share:
|  | 2017 |  |  | 2016 |  |  | 2015 |
Net income |  |  | 12,340 |  |  |  | (28,237 | ) |  |  | 4,579 |
Average number of shares outstanding |  |  | 392,625,259 |  |  |  | 391,497,615 |  |  |  | 392,101,191 |
Basic and diluted earnings per share |  |  | 31.43 |  |  |  | (72.13 | ) |  |  | 11.68 |

X
- Definition The disclosure of earnings per share. + References Reference 1: http://www.xbrl.org/2003/role/disclosureRef -Name IAS -Number 33 -IssueDate 2017-01-01 -Paragraph 66 -URI http://eifrs.ifrs.org/eifrs/XBRL?type=IAS&num=33&date=2017-03-01&anchor=para_66&doctype=Standard -URIDate 2017-03-09 + Details
Name: | ifrs-full_EarningsPerShareExplanatory
Namespace Prefix: | ifrs-full_
Data Type: | nonnum:textBlockItemType
Balance Type: | na
Period Type: | duration

X
- Definition Text block1 [abstract] + References No definition available. + Details
Name: | ypf_TextBlock1Abstract
Namespace Prefix: | ypf_
Data Type: | xbrli:stringItemType
Balance Type: | na
Period Type: | duration