Thinking about what happened... implicit conversions generally give domain
error if the conversion loses precision.  But in this case it seems ok to
convert to infinity,  because the fact that the result is float somewhat
implies a loss of precision.

What do you say about that?

And should there be an error converting rational to float that loses
precision?

Henry Rich

On Oct 7, 2017 08:56, "Raul Miller" <[email protected]> wrote:

> I was expecting a zero or a small value from this expression -
> instead, I got an error.
>
>    1.9%2^1024x
> |domain error
>    JVERSION
> Engine: j806/j64/darwin
> Beta-6: commercial/2017-09-26T14:12:52
> Library: 8.06.07
> Qt IDE: 1.6.1/5.6.3
> Platform: Darwin 64
> Installer: J806 install
> InstallPath: /users/rauldmiller/applications/j64-806
> Contact: www.jsoftware.com
>
> (I was trying to investigate the representation of denormalized numbers.)
>
> Thanks,
>
> --
> Raul
> ----------------------------------------------------------------------
> For information about J forums see http://www.jsoftware.com/forums.htm
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to