12-31-2004, 01:15 PM
Minor difference in INT function behavior. It seems like QB's INT returns a LONG, while FB's INT returns floating point:
QB shows 1000000000, FB 1e+009
I think this would cause expressions involving INT to use more floating point math than necessary. Example:But I guess that's not much of an issue on modern processors. I'm still freaked out that floating point division is faster than integer division - maybe FB's INT is better the way it is.
Code:
PRINT INT(1000000000)
I think this would cause expressions involving INT to use more floating point math than necessary. Example:
Code:
PRINT int% + INT(float!)