[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #48871] type conversion in matrix building
From: |
Matthias Jüschke |
Subject: |
[Octave-bug-tracker] [bug #48871] type conversion in matrix building |
Date: |
Tue, 23 Aug 2016 15:04:45 +0000 (UTC) |
User-agent: |
Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:48.0) Gecko/20100101 Firefox/48.0 |
URL:
<http://savannah.gnu.org/bugs/?48871>
Summary: type conversion in matrix building
Project: GNU Octave
Submitted by: maju
Submitted on: Tue 23 Aug 2016 03:04:43 PM GMT
Category: Interpreter
Severity: 3 - Normal
Priority: 5 - Normal
Item Group: Incorrect Result
Status: None
Assigned to: None
Originator Name:
Originator Email:
Open/Closed: Open
Discussion Lock: Any
Release: 4.0.0
Operating System: GNU/Linux
_______________________________________________________
Details:
while building a matrix with different types, not the "highest" type is
chosen.
>> [pi,uint8(0),-1]
ans =
3 0 0
>> [int8(-1),-1,uint16(256)]
ans =
-1 -1 127
>> [uint16(256),-1,int8(-1)]
ans =
256 0 0
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?48871>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
- [Octave-bug-tracker] [bug #48871] type conversion in matrix building,
Matthias Jüschke <=