help-octave
[Top][All Lists]
Advanced

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

Re: uint64 typecast can't be initialised with more than 15 decimal posit


From: Jordi Gutiérrez Hermoso
Subject: Re: uint64 typecast can't be initialised with more than 15 decimal positions
Date: Mon, 4 Mar 2013 13:10:14 -0500

On 4 March 2013 12:59, Yury T. <address@hidden> wrote:
> Now, integer datatype may represent (in 64 bits) roughly +-8x10^18,
> but this representation is, however, *always precise*.

It's precise as long as you don't do computations that exceed this
precision. When your computations exceed this precision, you'll get
wrong results that if I recall correctly, as undefined behaviour
according to the C++ standard (perhaps they're implementation defined
instead of undefined, can't remember).

> Ah, the Matlab compatibility... Please-please, add at least either
> this signalling or any other kind of warning. The current situation
> is unacceptable.

Most people don't notice, I don't think it's a problem, and I don't
really care. If you care so much, and you can't provide a patch
yourself consider paying someone to do this for you.

- Jordi G. H.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]