RicardoSantos

BinaryDecimalConversion

RicardoSantos Wizard Güncellendi   
Library "BinaryDecimalConversion"
Converts decimal to and from binary.

to_binary(number) convert integer to binary string
Parameters:
  • number: int, value to convert.
Returns: string

to_decimal(binary) Converts a binary in a string to decimal.
Parameters:
  • binary: string, binary number in a string.
Returns: int
Sürüm Notları:
v2 Binary shift methods, they are a bit demanding tho :s .

Added:
leftshift_logical(x, n)
  Shift the bits of an integer to the left.
  Parameters:
    x: int . Value to shift.
    n: int . Number of zeros to append to x.
  Returns: int.
Sürüm Notları:
v3 missed some exports..

Added:
rightshift_logical(x, n)
  Shift the bits of an integer to the right.
  Parameters:
    x: int . Value to shift.
    n: int . Number of bits to remove at the right of x.
  Returns: int.

leftshift_arithmetic(x, n)
  Shift the bits of an integer to the left.
  Parameters:
    x: int . Value to shift.
    n: int . Number of zeros to append to x.
  Returns: int.
leftshift_arithmetic () {
reference:
stackoverflow.com/qu...nary-shift-in-python

rightshift_arithmetic(x, n)
  Shift the bits of an integer to the right.
  Parameters:
    x: int . Value to shift.
    n: int . Number of bits to remove at the right of x.
  Returns: int.
Sürüm Notları:
v4 correcting a greasy finger :P, /lastonehesaid..

Updated:
leftshift_arithmetic(x, n)
  Shift the bits of an integer to the left.
  Parameters:
    x: int . Value to shift.
    n: int . Number of zeros to append to x.
  Returns: int.
Pine kitaplığı

Gerçek TradingView ruhuyla yazar, topluluğumuzdaki diğer Pine programcılarının yeniden kullanabilmesi için bu Pine kodunu açık kaynaklı bir kitaplık olarak yayınladı. Yazarın eline sağlık! Bu kitaplığı özel olarak veya diğer açık kaynaklı yayınlarda kullanabilirsiniz, ancak bu kodun bir yayında yeniden kullanımı Kullanım Koşulları tarafından yönetilir.

Feragatname

Bilgiler ve yayınlar, TradingView tarafından sağlanan veya onaylanan finansal, yatırım, işlem veya diğer türden tavsiye veya tavsiyeler anlamına gelmez ve teşkil etmez. Kullanım Şartları'nda daha fazlasını okuyun.

Bu kütüphaneyi kullanmak ister misiniz?

Metni panoya kopyalayın ve komut dosyanıza yapıştırın.