[Top][All Lists]

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

[Octave-bug-tracker] [bug #53472] primes.m: char input producing weird b

From: Rik
Subject: [Octave-bug-tracker] [bug #53472] primes.m: char input producing weird behaviours
Date: Thu, 12 Apr 2018 16:23:45 -0400 (EDT)
User-agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:55.0) Gecko/20100101 Firefox/55.0

Update of bug #53472 (project octave):

                  Status:                    None => Fixed                  
             Open/Closed:                    Open => Closed                 


Follow-up Comment #2:

I think it is better to use strict input validation.  If a programmer has

primes ('1')

it is more likely to be an error then the intended result.  If they really
want to know all primes less than 49 then they can explicitly say so by
converting the character to a number with double().

primes (double ('1'))

I tightened the input validation in this cset

Marking as fixed and closing report.


Reply to this item at:


  Message sent via/by Savannah

reply via email to

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