BigRat.new

Create a new big rational.

Prototype
   brat BigRat.new( num1 , num2 )

Parameters
   num1
      String or Big Number or Float or nil representing the numerator.
   num2
      String or Big Number or Float or nil representing the denominator.

Return Value
   This function return a new big rational. A nil value indicates an error.

Remarks
   If num1 is a String or a Big Number or float, brat is a representation if num1.
   If num1 is non nil and num2 is nil then it returns a rational with unity denominator.
   If num1 and num2 are nil, brat is a representation of number zero.

Example
   
require( "BigRat.lua" )

a = BigRat.new( "765" , "123" )
b = BigRat.new( "098"  )
c = BigRat.new( )
print( a )
print( b )
print( c )
   
Output 765 / 123 98 0