Brian Dunning's FileMaker Custom Functions

BinToFloat32 ( binary )

Convert a float32 (IEEE-754) formatted binary string to a decimal number.

  Average rating: 4.1 (20 votes) Log in to vote

Jake DeGroot   Jake DeGroot - Show more from this author

Share on Facebook Share on Twitter

  Sample input:
BinToFloat32 ( "01000001110010000000000000000000" )
BinToFloat32 ( "00111111100000000000000000000000" )
BinToFloat32 ( "10111110100000000000000000000000" )
BinToFloat32 ( "01000000100110000111101011100001" )
BinToFloat32 ( "11000011000110010011100111010010" )
  Sample output:
25
1
-.25
4.675
-153.22586

  Function definition: (Copy & paste into FileMaker's Edit Custom Function window)

Requires BaseConvert (http://www.briandunning.com/cf/901) and BinToFracDec (http://www.briandunning.com/cf/1878)

 

Comments

Log in to post comments.

 

Note: these functions are not guaranteed or supported by BrianDunning.com. Please contact the individual developer with any questions or problems.

Support this website.

This library has been a free commmunity resource for FileMaker users and developers for 20 years. It receives no funding and has no advertisements. If it has helped you out, I'd really appreciate it if you could contribute whatever you think it's worth: