XML 60 R48.htm IDEA: XBRL DOCUMENT
v3.19.1

INVESTMENTS (Details) - Schedule of held-to-maturity security $ in Thousands | 12 Months Ended
--- | ---
Jan. 31, 2019 USD ($)
Schedule of held-to-maturity security [Abstract] |
United States Treasury Bill, Amortized Cost | $ 14,975
United States Treasury Bill, Gross Unrealized Losses | 2
United States Treasury Bill, Estimated Fair Value | $ 14,973

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

X
- Definition Amount of unrealized gain (loss) on investment in debt security measured at fair value with change in fair value recognized in other comprehensive income (available-for-sale), investment in debt security measured at amortized cost (held-to-maturity) and investment in debt security measured at fair value with change in fair value recognized in net income (trading). + References No definition available. + Details
Name: | us-gaap_DebtSecuritiesUnrealizedGainLoss
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | duration

X
- Definition Amortized cost of investment in debt security measured at amortized cost (held-to-maturity), without single maturity date and not allocated over maturity grouping. + References Reference 1: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 320 -SubTopic 10 -Section 50 -Paragraph 5 -Subparagraph (f) -URI http://asc.fasb.org/extlink&oid=82897076&loc=d3e27232-111563 + Details
Name: | us-gaap_HeldToMaturitySecuritiesDebtMaturitiesWithoutSingleMaturityDateNetCarryingAmount
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | instant

X
- Definition Fair value of investment in debt security measured at amortized cost (held-to-maturity). + References Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 320 -SubTopic 10 -Section 50 -Paragraph 5 -Subparagraph (aa) -URI http://asc.fasb.org/extlink&oid=82897076&loc=d3e27232-111563 + Details
Name: | us-gaap_HeldToMaturitySecuritiesFairValue
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | instant