16.06.2017, 13:43
Yes it is fine, all special values for 32 bit are
X111111111XXXXXXXXXXXXXXXXXXXXXX - quit NaN
X111111110XXXXXXXXXXXXXXXXXXXXXX - signaling NaN
01111111100000000000000000000000 - +infinity
11111111100000000000000000000000 - -infinity
the X's are up to you, either 0 or 1
X111111111XXXXXXXXXXXXXXXXXXXXXX - quit NaN
X111111110XXXXXXXXXXXXXXXXXXXXXX - signaling NaN
01111111100000000000000000000000 - +infinity
11111111100000000000000000000000 - -infinity
the X's are up to you, either 0 or 1