1. Re: QBasic --> Euphoria (again)

Ralf, you wrote:

function abs (object x)
    return x < 0 * -2 + x
end function

Did you not really mean something like

function abs(object x)
    return -2*x*(x<0)+x   -- or perhaps (1-2*(x<0))*x
end function

because that would work. jiri

new topic     » topic index » view message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu