help-octave
[Top][All Lists]
Advanced

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

Re: variable precision arithmetic (vpa) errant results in windows 10, oc


From: Oliver Heimlich
Subject: Re: variable precision arithmetic (vpa) errant results in windows 10, octave-4.0.1
Date: Wed, 22 Jun 2016 17:48:43 +0200
User-agent: K-9 Mail for Android

Am 22. Juni 2016 17:44:21 MESZ, schrieb Colin Macdonald <address@hidden>:
>On 22/06/16 08:31, Colin Macdonald wrote:
>> On 21/06/16 21:30, reik red wrote:
>>> As you can see, the number "1/3" is inaccurately represented when
>digits
>>
>> I haven't read all that but have you read "help vpa"?
>
>That sounds ruder than I intended (maillist before coffee, sorry).
>
>Let me follow up with a question: "vpa" could explicitly warn when you 
>give it a double (which is not a smallish integer).  This is how "sym" 
>behaves.  Do you think that would be a good thing?
>
>I originally figured that might be annoying for someone who understands
>
>and wants "vpa(1/3)"... but maybe those people can simply disable the
>error.
>
>Thoughts?
>
>thanks,
>Colin
>
>_______________________________________________
>Help-octave mailing list
>address@hidden
>https://lists.gnu.org/mailman/listinfo/help-octave

A warning could help new users.

There is the exactly same issue in the interval package. If you want to 
implement this feature in the construtors (maybe with a regexp to identify 
fractions and decimal numbers) we should use the same warning id.

Oliver



reply via email to

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