From Chris Lightfoot · 1996-04-06 19:41 · #69238 in DRIVING
Hi Paul,
PS> I have finally got my hands on the MSBIN format layout that I have
PS> wanted for a long time, but I have stumbled across something known as a
PS> 'mantissa'. I am not sure what this means, so could anybody explain to
PS> me what it is and if appropriate, the layout of it?
Floating point numbers are made of two parts, a mantissa and an exponent. The
situation is _analogous_ to "scientific notation", like this:
6.76*10^-11
| |
| exponent
mantissa
Floating point numbers have of course the exponent being the power /of two/ to
which the mantissa (also called the "significand") is raised to get a real
number.
PS> PS. If anybody understands MSBIN, could they tell me how the following
PS> MSBIN-format number is calculated into the decimal '3' (this is what
PS> it represents, according to QBasic's MKSMBF function)
No, I don't understand MSBIN. Come to think of it, I don't understand a whole
lot to do with Microsoft.
PS> Byte1 Byte2 Byte3 Byte4
PS> 00000000 00000000 01000000 10000010
If this is for the NDX files for your QWK reader, why bother with them? Just
load the whole packet into memory and index it yourself... it worked fine for
me :)
Yrs, Oggie.
Chris Lightfoot email 101321.3254@compuserve.com oggie@spuddy.mew.co.uk
WWW http://ourworld.compuserve.com/homepages/chris_lightfoot
# Some things have to be believed to be seen
... A typo? But my modem is error-correcting!
-- SPEED 1.40 [NR]:
---
* Origin: The Rock of Gibraltar. 0181-6786087. (Messaging Only) (2:254/4)