Closed jareddonovan closed 11 years ago
Really! Surely only a pedant would want that behaviour, but it can be achieved if you really must:-
$app.java_send :println, [Java::int], 4/3 # Should print "1" $app.java_send :println, [Java::float], 4.0/3 # Should print "1.3333334" $app.java_send :println, [Java::float], 4/3.0 # Should print "1.3333334" $app.java_send :println, [Java::float], 4.0/3.0 # Should print "1.3333334"
Which I think only goes to show how you are "mistaken". How the hell you got blank lines god only knows.
@awarua What do you think?
uninformative
Noticed this when trying ex 04_08 from the Processing handbook in ruby...
...but the output is not as expected:
It prints a blank line instead of '1' for println 4/3. Does the same if you pass println an integer
puts 4/3 works like you'd expect...