XML 33 R23.htm IDEA: XBRL DOCUMENT v3.8.0.1
3. EARNINGS PER SHARE (Tables)
9 Months Ended
Feb. 28, 2018
Earnings Per Share [Abstract]  
Earnings per share

    The following table presents the computation of basic and diluted net income (loss) per share attributable to the Company’s common shareholders (in thousands, except per share data):

 

   Three Months Ended  Nine Months Ended
   February 28,  February 28,
   2018  2017  2018  2017
Numerator: Net income (loss)  $267   $(2,651)  $337   $(4,858)
                     
Denominator for basic net income (loss) per share:                    
Weighted-average shares outstanding   21,832    16,672    21,631    15,411 
                     
Shares used in basic net income (loss) per share calculation   21,832    16,672    21,631    15,411 
Effect of dilutive securities   809    —      1,207    —   
                     
Denominator for diluted net income (loss) per share   22,641    16,672    22,838    15,411 
                     
Basic net income (loss) per share  $0.01   $(0.16)  $0.02   $(0.32)
Diluted net income (loss) per share  $0.01   $(0.16)  $0.01   $(0.32)