Has anyone implemented math.h in their apps; or more specifically, round()? I Copied math.h from my arduino libraries and pasted it into the web IDE, labeling it math.h; however, when I go to verify my code I get this response:
math.h:440:8: error: expected unqualified-id before 'double’
math.h:440:8: error: expected ‘)’ before 'double’
math.h:440:8: error: expected ‘)’ before ‘double’
The line it’s referring to is the round() function which is written as:
double round (double __x) __ATTR_CONST__;
All of the other functions seem fine, but this one, the one I need reports an error.
Thanks for the help.