octave-bug-tracker
[Top][All Lists]
Advanced

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

[Octave-bug-tracker] [bug #43513] when constructing a matrix from one ve


From: Mike Miller
Subject: [Octave-bug-tracker] [bug #43513] when constructing a matrix from one vector of doubles and one vector of ints, octave silently casts the doubles to ints
Date: Sun, 02 Nov 2014 15:53:25 +0000
User-agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/38.0.2125.111 Safari/537.36

Update of bug #43513 (project octave):

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

    _______________________________________________________

Follow-up Comment #1:

Thanks for your bug report. This is a commonly misunderstood feature of the
Matlab and Octave languages. Since the default variable type is a double, it
is treated as having the least precedence when mixed-type numeric expressions
are evaluated.

I believe it is documented here:

https://www.gnu.org/software/octave/doc/interpreter/Promotion-and-Demotion-of-Data-Types.html

    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?43513>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

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