DOCUMENTATION CalcMe
  • language Translations of this page
    • Translations of this page
    • Català (ca)
    • Dansk (da)
    • Deutsch (de)
    • English (en)
    • Español (es)
    • Français (fr)

  1. Wiris Ecosystem Documentation
  2. CalcMe documentation
  3. Commands
  4. Arithmetic
  5. Bit

en:calc:commands:arithmetic:bit

Bit

Returns a bit in the binary representation of a number.

Syntax

bit(Integer, Integer)

Description

bit(Integer, Integer)

Given two integers n and i, returns the i-th element of the binary representation of n.

n equals a subscript 0 2 to the power of 0 plus a subscript 1 2 to the power of 1 plus midline horizontal ellipsis plus a subscript i 2 to the power of i plus midline horizontal ellipsis plus a subscript k 2 to the power of k

Related functions

Base change

Table of Contents
  • Syntax
  • Description
  • Related functions
Log In

Copyright © WIRIS 2021. All rights reserved.