[Scilab-users] exists yields double

classic Classic list List threaded Threaded
1 message Options
fmiyara fmiyara
Reply | Threaded
Open this post in threaded view
|

[Scilab-users] exists yields double


Dear all,

I wonder why the function "exists" yields 1 or 0 as doubles, instead of boolean. I know there is little distinction between booleans and {0, 1} and can be easily converted back and forth. I also know that Scilab is not meant to be a strongly typed language. But wouldn't it make more sense that this kind of funtion yielded a boolean result?

It challenges reason the fact that "isreal", for instance, yields a boolean and "exists" yields a double.  

Regards,

Federico Miyara

Libre de virus. www.avast.com

_______________________________________________
users mailing list
[hidden email]
http://lists.scilab.org/mailman/listinfo/users