You can use Rational when creation a Complex object:

> Complex(Rational(1,3))
=> ((1/3)+0i


2014-07-25 9:16 GMT-03:00 Nokan Emiro <uzleepito / gmail.com>:

> Hi,
>
> Complex numbers use floating point numbers by default.   Is there a
> way to force them to use BigDecimals (or maybe Rationals) without
> creating my own complex class?
>
> THX,
> u.
>
>
>


-- 
Juanjo Conti
blog: http://www.juanjoconti.com.ar