public static BigRational valueOf ( String string ) { String [ ] strings = string . split ( "/" ) ; BigRational result = valueOfSimple ( strings [ 0 ] ) ; for ( int i = 1 ; i < strings . length ; i ++ ) { result = result . divide ( valueOfSimple ( strings [ i ] ) ) ; } return result ; }
Creates a rational number of the specified string representation .