[Click] abs & log in click

Eddie Kohler kohler at icir.org
Mon Jul 7 12:19:19 EDT 2003


> I want to project a new element click which uses functions that make the absolute value and the natural logarithm of a float number. What's the way in click? Have I to add some library to do it?
> Thanks
> Lorena

No, just use the <cmath> functions (#include <cmath> ; log() and fabs()).
Note that you will not be able to use these functions in the kernel. In
fact, you cannot use floating point arithmetic in the kernel at all.

Eddie


More information about the click mailing list