XML 70 R58.htm IDEA: XBRL DOCUMENT
v3.19.1

DERIVATIVE FINANCIAL INSTRUMENTS (Details) l in Millions, bu in Millions | 12 Months Ended
--- | ---
Jan. 31, 2019 USD ($) bu | Jan. 31, 2018 USD ($) bu l | Jan. 31, 2017 USD ($)
DERIVATIVE FINANCIAL INSTRUMENTS (Details) [Line Items] |  |  |
Debt Instrument, Collateral Amount | $ | $ 281,000 |  |
Derivative, Gain on Derivative | $ | $ 2,698,000 | $ 1,317,000 | $ 2,131,000
Corn [Member] |  |  |
DERIVATIVE FINANCIAL INSTRUMENTS (Details) [Line Items] |  |  |
Forward Purchase Contracts, Quantity (in US Bushels) | bu | 1.3 | 11.7 |
Corn [Member] | Short/Sell [Member] |  |  |
DERIVATIVE FINANCIAL INSTRUMENTS (Details) [Line Items] |  |  |
Commodity Futures, Quantity | 2.0 | 2.5 |
Ethanol [Member] | Short/Sell [Member] |  |  |
DERIVATIVE FINANCIAL INSTRUMENTS (Details) [Line Items] |  |  |
Commodity Futures, Quantity | l |  | 2.8 |
Ethanol [Member] | Long/Buy [Member] |  |  |
DERIVATIVE FINANCIAL INSTRUMENTS (Details) [Line Items] |  |  |
Commodity Futures, Quantity | l |  | 2.8 |

X
- References No definition available. + Details
Name: | rex_CommodityFuturesQuantity
Namespace Prefix: | rex_
Data Type: | num:volumeItemType
Balance Type: | na
Period Type: | instant

X
- References No definition available. + Details
Name: | rex_DERIVATIVEFINANCIALINSTRUMENTSDetailsLineItems
Namespace Prefix: | rex_
Data Type: | xbrli:stringItemType
Balance Type: | na
Period Type: | duration

X
- References No definition available. + Details
Name: | rex_ForwardPurchaseContractsQuantity
Namespace Prefix: | rex_
Data Type: | num:volumeItemType
Balance Type: | na
Period Type: | instant

X
- Definition Amount of assets pledged to secure a debt instrument. + References Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 942 -SubTopic 470 -Section 50 -Paragraph 3 -Subparagraph (d) -URI http://asc.fasb.org/extlink&oid=75038535&loc=d3e64711-112823 + Details
Name: | us-gaap_DebtInstrumentCollateralAmount
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | instant

X
- Definition Amount of increase in the fair value of derivatives recognized in the income statement. + References Reference 1: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 815 -SubTopic 10 -Section 50 -Paragraph 4A -Subparagraph (b)(1) -URI http://asc.fasb.org/extlink&oid=109980867&loc=SL5618551-113959 + Details
Name: | us-gaap_DerivativeGainOnDerivative
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | duration

X
- Details
Name: | us-gaap_TradingActivityByTypeAxis=rex_CornMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_ContractWithCustomerDurationAxis=rex_ShortSellMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_TradingActivityByTypeAxis=rex_EthanolMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_ContractWithCustomerDurationAxis=rex_LongBuyMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |