Re: abs function

new topic     » goto parent     » topic index » view thread      » older message » newer message

This one works with sequences too.

function abs(object x)
    return x*(x>=0)-x*(x<0)
end function

Graeme.

----------------------------------------------------

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu