Jump to content

Microsoft Binary Format

From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by Paul Foxworthy (talk | contribs) at 12:41, 24 February 2010 (Created page). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.
(diff) ← Previous revision | Latest revision (diff) | Newer revision → (diff)

In computing, Microsoft Binary Format was a format for floating point numbers used in Microsoft's BASIC language products including MBASIC, QuickBasic and GW-BASIC.[1]

MBF double-precision numbers consist of a sign bit, an eight bit exponent and a 55 bit significand, providing slightly more precison than the IEEE format, but less scale.[2][3]

By the time Visual Basic was released, the IEEE 754 standard had become widely adopted and used - for example, it was incorporated into Intel's 387 coprocessor and every x86 processor from the 486 on. Visual Basic used the IEEE 754 format instead of MBF.

See also

Microsoft provide a 16 bit dynamic link library with C source code containing functions to convert MBF data to IEEE 754.

MBF to IEEE function written in Python

MBF to IEEE conversion functions in Delphi

See also

Notes and references

  1. ^ "IEEE vs. Microsoft Binary Format; Rounding Issues (Complete)". Microsoft Support. November 21, 2006. Retrieved February 24, 2010.
  2. ^ "IEEE vs. Microsoft Binary Format; Rounding Issues (Complete)". Microsoft Support. November 21, 2006. Retrieved February 24, 2010.
  3. ^ "Need to access MBF (Microsoft Binary Format) data". Experts Exchange. December 11, 2001. Retrieved February 24, 2010.