[Prev][Next][Index][Thread]

Re: Complex/Imaginary numbers



In article <brucehoult-0911990122310001@bruce.bgh>, brucehoult@pobox.com
(Bruce Hoult) wrote:

> In article <38260681.F2E790D6@lostwax.com>, Rob Myers <robm@lostwax.com>
wrote:
> 
> Note that an i() function can be used as so:
> 
>   3 + 4.i

As has been pointed out to me in email, the 4. would be interpreted as a
FP number.

Not too much of a problem, since thee is likely little need for complex
integers, and all FP constants should of course have at least one decimal
place.

So make that:

   3.0 + 4.0.i

:-)

-- Bruce



References: