bas7advr.hlp (Topic list)
Important Notice
The pages on this site contain documentation for very old MS-DOS software, purely for historical purposes. If you're looking for up-to-date documentation, particularly for programming, you should not rely on the information found here, as it will be woefully out of date.
MKSMBF$, MKDMBF$ Functions Details
  Syntax  Details  Example                 Contents  Index  Back
──────────────────────────────────────────────────────────────────────────────
MKSMBF$ and MKDMBF$ convert an IEEE-format number to a string containing
a Microsoft-Binary-format number.
 
MKSMBF$(single-precision-expression!)
MKDMBF$(double-precision-expression#)
 
Usage Notes
    ■ These functions are used to write real numbers to random-access files
      using Microsoft-Binary format. They are particularly useful for
      maintaining data files created with older versions of BASIC.
    ■ The MKSMBF$ and MKDMBF$ functions convert real numbers in IEEE format
      to strings containing MBF numbers so they can be written to the
      random-access file.
    ■ To write a real number to a random-access file in Microsoft-Binary
      format, convert the number to a string using MKSMBF$ (for a
      single-precision number) or MKDMBF$ (for a double-precision number).
      Then store the result in the corresponding field (defined in the FIELD
      statement) and write the record to the file using the PUT statement.
    ■ Currency numbers are not real numbers, so they cannot be converted
      to strings that contain Microsoft-Binary-format numbers.