3-24 Full Command and Function Reference
See also: ARC, LINE, TLINE
BUFLEN
Type: Command
Description: Buffer Length Command: Returns the number of characters in the hp49g+/hp48gII
's serial
input buffer and a single digit indicating whether an error occurred during data reception.
The digit returned is 1 if no framing, UART overrun, or input-buffer overflow errors occurred
during reception, or 0 if one of these errors did occur. (The input buffer holds up to 255 bytes.)
When a framing or overrun error occurs, data reception ceases until the error is cleared (which
BUFLEN does); therefore, n represents the data received before the error.
Use ERRM to see which error has occurred when BUFLEN returns 0 to level 1.
Access: …µ
BUFLEN
Input/Output:
Level 1/Argument 1 Level 2/Item 1 Level 1/Item 2
→
n
chars
0/1
See also: CLOSEIO, OPENIO, SBRK, SRECV, STIME, XMIT
BYTES
Type: Command
Description: Byte Size Command: Returns the number of bytes and the checksum for the given object.
If the argument is a built-in object, then the size is 2.5 bytes and the checksum is #0.
If the argument is a global name, then the size represents the name and its contents, while the
checksum represents the contents only. The size of the name alone is (3.5 + n), where n is the
number of characters in the name.
Access: !°
MEMORY BYTES ( °is the left-shift of the Nkey).
Input/Output:
Level 1/Argument 1 Level 2/Item 1 Level 1/Item 2
obj
→
#n
checksum
x
size
See also: MEM
B→R
Type: Command
Description: Binary to Real Command: Converts a binary integer to its floating-point equivalent.
If # n
≥ # 1000000000000 (base 10), only the 12 most significant decimal digits are preserved in
the resulting mantissa.
Access: …ã
B→R ( ãis the right-shift of the 3key).
Flags: Binary Integer Wordsize (–5 through –10), Binary Integer Base (–11, –12)
Input/Output:
Level 1/Argument 1 Level 1/Item 1
#n
→
n
See also: R→B
C2P
CAS: Take a list of cycles and return the equivalent permutation.