New answers tagged

0

I don't believe that a constant or macro is available in NXC for positive infinity. C99 defines INFINITY in math.h, but the math module in NXC does not appear to include this. NXC uses IEEE 754 floating point, so something like this should give you the raw value of infinity cast to a float: int raw_infinity = 0x7f800000; const float INFINITY = ...


2

According to the docs (emphasis added): Warning This function requires the enhanced NBC/NXC firmware version 1.31+ Make sure you are using the enhanced firmware provided with NXC and not the official firmware from LEGO.



Top 50 recent answers are included