GETBITS syntax
05-12-2016, 05:56 PM
Post: #1
 salvomic Senior Member Posts: 1,366 Joined: Jan 2015
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
05-12-2016, 09:25 PM
Post: #2
 informach Member Posts: 109 Joined: Jul 2015
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.
05-12-2016, 09:34 PM
Post: #3
 salvomic Senior Member Posts: 1,366 Joined: Jan 2015
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
05-12-2016, 09:49 PM
Post: #4
 DrD Senior Member Posts: 1,101 Joined: Feb 2014
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-
05-12-2016, 09:51 PM
Post: #5
 salvomic Senior Member Posts: 1,366 Joined: Jan 2015
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
 « Next Oldest | Next Newest »

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