public String convert(Double theMoney) {
        if (theMoney == null) {
            throw new IllegalArgumentException("theMoney is null");
        }
        Long intPart = theMoney.longValue();
        Long fractPart = Math.round((theMoney - intPart) * NUM100);
        if (currency == Currency.PER1000) {
            fractPart = Math.round((theMoney - intPart) * NUM1000);
        }
        return convert(intPart, fractPart);
    }
public String convert ( Double theMoney ) { if ( theMoney == null ) { throw new IllegalArgumentException ( "theMoney is null" ) ; } Long intPart = theMoney . longValue ( ) ; Long fractPart = Math . round ( ( theMoney - intPart ) * NUM100 ) ; if ( currency == Currency . PER1000 ) { fractPart = Math . round ( ( theMoney - intPart ) * NUM1000 ) ; } return convert ( intPart , fractPart ) ; }
Converts double value to the text description.

@param theMoney
the amount of money in format major.minor
@return the string description of money value