On Sun, Sep 14, 2014 at 10:07:21PM +0200, Christophe Gragnic wrote:
> I was wondering how easy it was to pass floats to java libs from Ersatz,
> and also maybe receive some and rescale them to ints.
I haven't used Ersatz since quite some time, and forgot most of the
details. But have you found
which gives a basic intro? Most notably the type conversion functions at
the end, e.g. (double: 'num 'cnt) ...
: (setq X (double: 123456 2))
: (java X 2)
Other examples for related operations, also with inline Java code or
calling system libraries, are in RosettaCode, like