Post Reply 
GETBITS syntax
05-12-2016, 05:56 PM
Post: #1
GETBITS syntax
I wonder why GETBITS(#255d) it's ok but GETBITS(255) not (error: invalid input).
It could be interpreted "as default" as decimal...
Or not?

Salvo

∫aL√0mic (IT9CLU), HP Prime 50g 41CX 71b 42s 12C 15C - DM42 WP34s :: Prime Soft. Lib
Visit this user's website Find all posts by this user
Quote this message in a reply
05-12-2016, 09:25 PM
Post: #2
RE: GETBITS syntax
Hi!, salvomic:

Syntax: GETBITS(#integer) Returns the number, of bits, used by integer, expressed, in the default base.
Example: GETBITS(#22122) returns #20h or 32.

Kind Regards.
informach.
Find all posts by this user
Quote this message in a reply
05-12-2016, 09:34 PM
Post: #3
RE: GETBITS syntax
thank you, I know it...
I mean: "why is the # mandatory?"

∫aL√0mic (IT9CLU), HP Prime 50g 41CX 71b 42s 12C 15C - DM42 WP34s :: Prime Soft. Lib
Visit this user's website Find all posts by this user
Quote this message in a reply
05-12-2016, 09:49 PM
Post: #4
RE: GETBITS syntax
Hi Salvo,

The syntax for this requires the integer base in order to determine the encoding. It uses the default base if not specified, but in any event, that means you would need to use the integer syntax (#number, o, d, h).

-Dale-
Find all posts by this user
Quote this message in a reply
05-12-2016, 09:51 PM
Post: #5
RE: GETBITS syntax
(05-12-2016 09:49 PM)DrD Wrote:  Hi Salvo,

The syntax for this requires the integer base in order to determine the encoding. It uses the default base if not specified, but in any event, that means you would need to use the integer syntax (#number, o, d, h).

-Dale-

thank you Dale,
now it is very clear for me.

Salvo

∫aL√0mic (IT9CLU), HP Prime 50g 41CX 71b 42s 12C 15C - DM42 WP34s :: Prime Soft. Lib
Visit this user's website Find all posts by this user
Quote this message in a reply
Post Reply 




User(s) browsing this thread: 1 Guest(s)