scoreboard.c
uint32_t scoreboard_convertFloatToInt(float input) {
	unsigned char a[4];
	int i = 0;
	unsigned int res = 0;
	memcpy(a, &input, 4);
	for (i=3; 0<=i; --i) {
		res = res << 8;
		res += (int)a[i];
	}
	return (uint32_t)res; /* scoreboard_convertFloatToInt(0.085) == 1034818683; */
}
/* Convert Single-precision floating-point format to int
 * The integer represent the 32-bit IEEE 754 format of the decimal value */
Convert Single-precision floating-point format to int
The integer represent the 32-bit IEEE 754 format of the decimal value
Convert Single - precision floating - point format to int The integer represent the 32 - bit IEEE 754 format of the decimal value
uint32_t scoreboard_convertFloatToInt(float input) {
	unsigned char a[4];
	int i = 0;
	unsigned int res = 0;
	memcpy(a, &input, 4);
	for (i=3; 0<=i; --i) {
		res = res << 8;
		res += (int)a[i];
	}
	return (uint32_t)res; 
}
uint32_t scoreboard_convertFloatToInt ( float input ) { unsigned char a [ 4 ] ; int i = 0 ; unsigned int res = 0 ; memcpy ( a , & input , 4 ) ; for ( i = 3 ; 0 <= i ; -- i ) { res = res << 8 ; res += ( int ) a [ i ] ; } return ( uint32_t ) res ; }
Convert Single-precision floating-point format to int
 The integer represent the 32-bit IEEE 754 format of the decimal value
Convert Single - precision floating - point format to int The integer represent the 32 - bit IEEE 754 format of the decimal value
/* scoreboard_convertFloatToInt(0.085) == 1034818683; */