menu_logo

menu_view_template done edit menu_subscribe menu_add menu_publish iOS Create Account Login
menu_clear
  • menu_insert_row
  • menu_delete_row
  • menu_insert
  • menu_share_template
  • menu_share_results
  • menu_duplicate
  • menu_view_source
  • menu_view_calc_log
  • menu_settings
  • menu_tags
  • help
  • menu_profile
  • menu_log_out
menu_preview_only
details_tap
details_type
details_title

Math Functions: Programmer Calculator

Math Functions: Programmer

Programmer numbers are those integers as designated in alternative number bases often used by programmers. See [https://.../t/help_calculator | Calculator] for more details.
__Programmer numbers are available in the calculator only.__

Creating Programmer Numbers

PowerOne supports four programmer numbers:
- ++Decimal++ (base 10): starts with 0d and contains digits 0 through 9
- ++Hexadecimal++ (base 16): starts with 0x and contains digits 0 through 9 and A through F
- ++Binary++ (base 2): starts with 0b and contains digits 0 and/or 1
- ++Octal++ (base 8): starts with 0o (zero-oh) and contains digits 0 through 7
**Examples**
<0d198>
<0xA43>
<0b10011>
<0o701>

Programmer Math

And [bitand]

Algebraic: ++bitand(value 1; value 2)++
RPN: ++value 1 [ENT] value 2 [and]++
Returns result of bitwise AND of 'value 1' with 'value 2'.

Or [bitor]

Algebraic: ++bitor(value 1; value 2)++
RPN: ++value 1 [ENT] value 2 [or]++
Returns result of bitwise OR of 'value 1' with 'value 2'.

Exclusive Or [bitxor]

Algebraic: ++bitxor(value 1; value 2)++
RPN: ++value 1 [ENT] value 2 [xor]++
Returns result of bitwise XOR of 'value 1' with 'value 2'.

Not [bitnot]

Algebraic: ++bitnot(value)++
RPN: ++value [not]++
Returns result of bitwise NOT (one's complement) of 'value'.

Shift Left [<<, bitleft]

Algebraic: ++bitleft(value; numbits)++
RPN: ++value [ENT] numbits [<<]++
Returns result of shifting 'value' to the left by 'numbits'.

Shift Right [>>, bitright]

Algebraic: ++bitright(value; numbits)++
RPN: ++value [ENT] numbits [>>]++
Returns result of shifting 'value' to the right by 'numbits'.

Conversions

Convert to Decimal [→dec]

++value [→dec]++
Convert from 'value' to decimal programmer number. Selecting a conversion key will complete the result and convert the value.

Convert to Hexadecimal [→hex]

++value [→hex]++
Convert from 'value' to hexadecimal programmer number. Selecting a conversion key will complete the result and convert the value.

Convert to Binary [→bin]

++value [→bin]++
Convert from 'value' to binary programmer number. Selecting a conversion key will complete the result and convert the value.

Convert to Octal [→oct]

++value [→oct]++
Convert from 'value' to octal programmer number. Selecting a conversion key will complete the result and convert the value.

Keywords

-------------
And
Or
Exclusive Or
XOr
Not
bitand()
bitor()
bitxor()
bitnot()
Shift Left
Shift Right
<<
>>
bitleft()
bitright()
Convert to decimal
Convert to hexadecimal
Convert to octal
Convert to binary
Decimal
Hexadecimal
Octal
Binary