Git Product home page Git Product logo

bitcalculator's Introduction

Bit Calculator

This asset allows users to convert formulas into a bit output, and allows for easy bit flipping in-editor.

Usage

Simply head to the top of Unity and open the window from Tools/Nomnom/Bit Calculator.

Installation

Using Unity Package Manager

  1. Open the Package Manager from Window/Package Manager.
  2. Click the '+' button in the top-left of the window.
  3. Click 'Add package from git URL'.
  4. Provide the URL of this git repository: https://github.com/nomnomab/BitCalculator.git
  5. Click the 'add' button.

Overview

What Can It Do?

  1. Has an input field that can take a literal string for a bit "formula".
  2. Bits are shown at the bottom of the window.
    • These can be pressed to get "flipped" to their opposite value (0 to 1 and 1 to 0 respectively).
  3. Shows the formula output in multiple values:
    • Hexadecimal
    • Decimal
    • Octal
    • Binary
  4. Is based on the Window's Calculator programmer mode, so it can do a good chunk of what that can do.

Supported Operations

Integer operations only

  • << → Left shift
  • >> → Right shift
  • & → AND
  • | → OR
  • ^ → XOR
  • ~ → Complement (Invert)
  • () → Groups
    • Single numbers inside of groups are not currently supported e.g. (5)
  • + → Addition
  • - → Subtraction
  • * → Multiplication
  • / → Division
  • ** → Exponent

Notes

  • The light mode version of the window looks a bit... bad. This will be improved at a later time.

bitcalculator's People

Contributors

nomnomab avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

r2d2m aboutunity

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.