Re: simple eurphoria question
- Posted by Igor Kachan <kinz at peterlink.ru> Dec 10, 2006
- 656 views
Ricardo M. Forno wrote: [snipped] > function f2(atom a) > if a < 0 then > return - floor(- a) > end if > return floor(a) > end function [snipped] Hi Ricardo, Try please the below version:
function f2_(atom a) if a >= 0 then -- ">=" seems to be faster than just "<" return floor(a) end if return - floor(- a) -- it seems to be a rare case end function
Regards, Igor Kachan kinz at peterlink.ru