nearfloat("succ",rand(2,2,2)) returns a (2,2) matrix with no error
Reported by Samuel GOUGEON (@sgougeon)
-- Bug description --
nearfloat("succ",rand(2,2,2)): mis-leading error message
-- Scilab error message --
-->nearfloat("succ",rand(2,2,2))
!--error 201
nearfloat: Wrong type for argument 2: Real or complex matrix expected.
// Actually, complexes are not allowed:
-->nearfloat("succ",rand(2,2)+rand(2,2)*%i)
!--error 202
nearfloat: Wrong type for argument 2: Real matrix expected.
-- How to reproduce the bug --