bugGNU Octave - Bugs: bug #53447, bitset.m: not producing...

 
 

bug #53447: bitset.m: not producing error,warning in fractional number

Submitted by:  Dildar Sk <hodor123456>
Submitted on:  Sat 24 Mar 2018 05:04:00 AM UTC  
 
Category:  Octave Function Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Missed Error or Warning
Status:  None Assigned to:  None
Originator Name:  Dildar Sk Open/Closed:  Open
Release:  dev Operating System:  GNU/Linux

Add a New Comment (Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Sat 24 Mar 2018 05:04:00 AM UTC, original submission:  

In MATLAB,

>> bitset(2.5,2)
Error using bitset
Double inputs must have integer values in the range of
ASSUMEDTYPE.

>> bitset(2.7,2)
Error using bitset
Double inputs must have integer values in the range of
ASSUMEDTYPE.

>> bitset(2.9,2)
Error using bitset
Double inputs must have integer values in the range of
ASSUMEDTYPE.

>> bitset(2.9,2,1)
Error using bitset
Double inputs must have integer values in the range of
ASSUMEDTYPE.

>> bitset(2.1,2)
Error using bitset
Double inputs must have integer values in the range of
ASSUMEDTYPE.

>> bitset(2.5,2)
ans =  3
>> bitset(2.7,2)
ans =  3
>> bitset(2.9,2)
ans =  3
>> bitset(2.9,2,1)
ans =  3
>> bitset(2.1,2)
ans =  2

So MATLAB producing error if it's not an integer where Octave doesn't.

Dildar Sk <hodor123456>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by hodor123456 (Submitted the item)
  • -email is unavailable- added by hodor123456
  •  

    Do you think this task is very important?
    If so, you can add your encouragement to it.
    This task has 0 encouragements so far.

    Only project members can vote.

     

     

     

    Follows 1 latest change.

    Date Changed by Updated Field Previous Value => Replaced by
    2018-03-24 hodor123456 Carbon-Copy- => Added dildarsk101010@gmail.com

    Back to the top


    Powered by Savane 3.5