Float32toBinary ( float )
Convert a decimal number to float32 (IEEE-754) binary format.
Average rating: 4.6 (14 votes) Log in to vote
Jake DeGroot - Show more from this author |
Float32toBinary ( 1 )
Float32toBinary ( -.25 )
Float32toBinary ( 4.765 )
Float32toBinary ( -153.22586 )
00111111100000000000000000000000
10111110100000000000000000000000
01000000100110000111101011100001
11000011000110010011100111010010
Function definition: (Copy & paste into FileMaker's Edit Custom Function window)
Requires BaseConvert (http://www.briandunning.com/cf/901) and FracDecToBin (http://www.briandunning.com/cf/1877)
Comments
Arjen van Dijk, KROHNE Altometer Jun 26, 2018 |
||
I found something strange two different inputs have the same result, where i think the second one is wrong : 1) Hex C2B60000 > Bin 11000010101101100000000000000000 > Dec -91 2) Hex C11FFFFC > Bin 11000001000111111111111111111100 > Dec -91 But must be -10 !! |
||
Note: these functions are not guaranteed or supported by BrianDunning.com. Please contact the individual developer with any questions or problems.