Re: help?

new topic     » goto parent     » topic index » view thread      » older message » newer message
kobi said...

I'm sorry, I'm probably so dense today.
I can't see what's wrong in this little piece of code:

function minmax(atom min, atom max, atom val)  
    atom temp = math:max ({min, val})  
    atom res = math:min({max, temp})  
    return res  
end function  

qualifying w/math: gets rid of the syntax error and produces 7.2 wrong again?

seems it should test min first otherwise should be called maxmin

probably a bug.

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

Search



Quick Links

User menu

Not signed in.

Misc Menu