📄 hexread.me
字号:
File. "Hexread.me".
Source. "Hex.c".
Code Version. 1.0.
Author. Lowell T. Spencer.
Release Date. 5/11/89.
Original Source. Yes.
Public Domain. Yes.
Purpose.
This file contains eight functions. The first four of these functions
convert a string into a "double" number, but each one converts a different
type of string (hexidecimal,octal,binary,decimal). The last four do the
opposite-"double" number to string (hexidecimal,octal,binary,decimal).
Each function uses a list to aid in conversion, instead of mutilplica-
tion. Why use double? On the IBM PC floating numbers truncate and "get
off." Double numbers do not. Floating numbers handle 6 decimal digits.
Double numbers handle 10 decimal digits (Even though I did not use
decimals).
The functions can be shortened and made to be 4 times faster by adding
the "break" keyword. The functions are designed to be more readable (i.e.
instead of say "y += + a * x[count3]," they appear as " y = y + a *
x[count3]"). They, the functions, are structured.
The Source does not include many comments, but as a programmer you
should have no problem.
This "code" is released to the public domain only if the author is
given credit for his work. If anyone modifies the source, add to it,
etc, please add documention, your name, and date altered to this file.
-Thank You-
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -