I tried to use comparisons as conditional statements in QGIS 2.4.0 raster calculator.
My statement is:
(a < 230) * 230 + (a >= 230) * a
The expected result is raster a with all values lower than 230 replaced by 230.
What I get instead is a raster with nan and 3.40282e+38.
Upon further investigation I found that the comparison returns either 1 or nan / -3.40282e+38. Why is it not returning 1 or 0? What am I doing wrong? How can I build conditional statements with the raster calculator?