Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 8609

SDK • Re: Floating point bugs on RP2040 and RP235X ?

$
0
0
Ah , I came here to get some clarification on this issue.

I wanted to return nan when my sensor readings fail and have that propagate up the call chain testing with isnan(). I was not getting what I expected.

I fell back to the old fortranies trick of using -99999 but I'd rather this worked cleanly.

Does this work reliably with the pico_set_float_implementation(<TARGET> compiler) hack ?

What exactly is that argument for an RP2040 ?

TIA.

Statistics: Posted by pie_face — Sun Oct 26, 2025 5:45 pm



Viewing all articles
Browse latest Browse all 8609

Trending Articles