[Bugzilla] [Bug 15504] New: nearfloat(.., int32(1)) returns nothing and generates no error. Same issue with all types of encoded integers inputs.
bugzilla.admin at scilab.org
bugzilla.admin at scilab.org
Sun Mar 25 18:48:49 CEST 2018
http://bugzilla.scilab.org/show_bug.cgi?id=15504
--------- Bug Summary -----------
nearfloat(..,int32(1)) returns nothing and generates no error. Same issue with all types of encoded integers inputs.
---------- Changed by ------------
sgougeon at free.fr
---------- What changed ----------
bug_id, short_desc, product, version, rep_platform, op_sys, bug_status, bug_severity, priority, component, assigned_to, reporter
Bug ID: 15504
Summary: nearfloat(..,int32(1)) returns nothing and generates
no error. Same issue with all types of encoded
integers inputs.
Product: Scilab software
Version: 6.0.1
Hardware: (not used)
OS: All OS
Status: NEW
Severity: Medium
Priority: (field not used)
Component: Numerical Math
Assignee: bugzilla.admin at scilab.org
Reporter: sgougeon at free.fr
BUG DESCRIPTION:
----------------
In Scilab 5.5.2:
---------------
-->nearfloat("pred",int32(1))
!--error 201
nearfloat: Wrong type for argument #2: Real or Complex matrix expected.
-->nearfloat("succ",int32(1))
!--error 201
nearfloat: Wrong type for argument #2: Real or Complex matrix expected.
Same thing with int8, uint8, int16, uint16, uint32 inputs.
In Scilab 6.0:
-------------
--> nearfloat("pred", int32(1)) // nothing displayed
--> nearfloat("succ", int32(1)) // idem
--> type(nearfloat("pred", int32(1)))
--> type(nearfloat("pred", int32(1)))
type: Wrong number of input arguments: 1 expected.
This makes troubles when the result is tentatively assigned, like
"Unable to extract right part expression."
ERROR LOG:
----------
none. The bug is the miss of error message
HOW TO REPRODUCE THE BUG:
-------------------------
for i = [1 2 4 8 11 12 14 18]
nearfloat("pred", iconvert(1,i));
nearfloat("succ", iconvert(1,i));
end
// Should yield 16 error messages, while noting is displayed
OTHER INFORMATION:
------------------
Bug found when analyzing bugs of round() with int64 and uint64
--
You are receiving this mail because:
You are watching all bug changes.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.scilab.org/pipermail/bugzilla/attachments/20180325/f4e0ec39/attachment.htm>
More information about the Bugzilla
mailing list