Bean Shell

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

Bean Shell

Friam mailing list
I recently downloaded the latest bean shell, primarily due
to wanting to be able to test simple expressions without
having to edit-compile-run ... basically experimenting
in an interpretive environment.

Here I'm trying to see how mod/rem works in Java
with negative numbers.  Always a bit dicy.
This is *very* useful!

owen: java bsh.Interpreter
BeanShell 1.2.7 - by Pat Niemeyer ([hidden email])
bsh % a=-7%3;
bsh % print (a);
-1

Owen Densmore           451 Camino Don Miguel     Santa Fe, NM 87505
Work: 505-983-6305      Cell: 505-570-0168        Home: 505-988-3787
[hidden email]     http://backspaces.net/