Go Down

Topic: The math function FLOOR is a reserve word without documentation. (Read 4424 times) previous topic - next topic


I looked for the math function "floor" in the Language Reference and found none. when I started to write my own floor function, I found the word floor was already reserved. I.E. lights up amber colored. Does anyone know if a floor function exists in an undocumented state? If so where can I find info on it? Should I just write my own using another name?


Mar 15, 2011, 06:01 pm Last Edit: Mar 15, 2011, 06:09 pm by gardner Reason: 1
It should be there as soon as you #include <math.h>


The syntax colouring in the IDE is based on a rule-set that is not connected to the actual compiler and libc, so do not assume that the colour coding necessarily means that something is genuinely "reserved" or defined or otherwise has a specific meaning.  It's a guideline and convenience more than anything.


Thanks that clears it up. I should have checked the libraries.

Go Up