Zach Lipton sent the following bits through the ether:

> Is there any way to round this, or at least chop the 0's off the end?

Right. I'd just like to clear this up completely. The N registers are
for numerics (well, ok, floating point) and the I registers are for
integers. Currently, quite a bit of precision is used when printing
the N registers. There are two ways to get 4 out of your code: either
convert the N to an I or work with Is:

        set N0,2
        set N1,2
        add N3, N0, N1
        print N3       # prints 4.00000
        print "\n"
        ntoi I0, N3
        print I0       # prints 4
        print "\n"
        set I0, 2
        set I1, 2
        add I2, I0, I1
        print I2       # prints 4
        print "\n"
        end

Hope this helps, Leon
-- 
Leon Brocard.............................http://www.astray.com/
Nanoware...............................http://www.nanoware.org/

.... Tonight's the night: Sleep in a eucalyptus tree

Reply via email to