XML 64 R52.htm IDEA: XBRL DOCUMENT
v3.21.1

DERIVATIVE FINANCIAL INSTRUMENTS (Details) bu in Millions | 12 Months Ended
--- | ---
Jan. 31, 2021 USD ($) bu | Jan. 31, 2020 USD ($) bu | Jan. 31, 2019 USD ($)
DERIVATIVE FINANCIAL INSTRUMENTS (Details) [Line Items] |  |  |
Forward Purchase Contracts, Quantity (in US Bushels) | bu | 6.4 |  |
Debt Instrument, Collateral Amount | $ 1,657,000 | $ 1,113,000 |
Corn [Member] |  |  |
DERIVATIVE FINANCIAL INSTRUMENTS (Details) [Line Items] |  |  |
Forward Purchase Contracts, Quantity (in US Bushels) | bu | 6.4 | 1.6 |
Short [Member] | Corn [Member] |  |  |
DERIVATIVE FINANCIAL INSTRUMENTS (Details) [Line Items] |  |  |
Commodity Futures, Quantity (in US Bushels) | bu | 6.9 | 3.7 |
Long [Member] | Corn [Member] |  |  |
DERIVATIVE FINANCIAL INSTRUMENTS (Details) [Line Items] |  |  |
Commodity Futures, Quantity (in US Bushels) | bu |  | 2.2 |
Cost of Sales [Member] |  |  |
DERIVATIVE FINANCIAL INSTRUMENTS (Details) [Line Items] |  |  |
Derivative, Loss on Derivative | $ 5,552,000 |  |
Derivative, Gain on Derivative |  | $ 2,201,000 | $ 2,698,000
Revenue Benchmark [Member] |  |  |
DERIVATIVE FINANCIAL INSTRUMENTS (Details) [Line Items] |  |  |
Derivative, Loss on Derivative | $ 1,167,000 |  |
Derivative, Gain on Derivative |  | $ 0 | $ 0

X
- References No definition available. + Details
Name: | rex_CommodityFuturesQuantity
Namespace Prefix: | rex_
Data Type: | dtr: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: | dtr: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=123599511&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=125515794&loc=SL5618551-113959 + Details
Name: | us-gaap_DerivativeGainOnDerivative
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | duration

X
- Definition Amount of decrease 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=125515794&loc=SL5618551-113959 + Details
Name: | us-gaap_DerivativeLossOnDerivative
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
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=us-gaap_ShortMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

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

X
- Details
Name: | us-gaap_IncomeStatementLocationAxis=us-gaap_CostOfSalesMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_IncomeStatementLocationAxis=us-gaap_SalesRevenueNetMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |