Options
All
  • Public
  • Public/Protected
  • All
Menu

The CharToDigitValue class

You must send a character to it, this is done with the method "setDigitValue ()". If you then call the method "getDigitValue ()" you get a boolean array.

example:

    setDigitValue("1")
    getDigitValue()

The value of getDigitValue() will be "[false, true, true, false, false, false, false, false]".

Hierarchy

  • CharToDigitValue

Index

Properties

Private digit

digit: string = ""

Private digitsArray

digitsArray: boolean[] = []

Methods

Private DigitValue

  • DigitValue(): boolean[]
  • Returns boolean[]

    Give the right binary representation back. These is done by an array of booleans.

getDigitValue

  • getDigitValue(): boolean[]
  • Returns boolean[]

    Give the right binary representation back to the user. These is done by an array of booleans.

setDigitValue

  • setDigitValue(input: string): void

Generated using TypeDoc