Skip to content

0xricksanchez/pcalc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

pcalc

pcalc clone written in rust for the sole purpose of it being able to handle 64-bit numbers. It's happily doing arithmetics with overflows just wrapping around the usize space.

Usage

image

Implemented Operators

  • Addition ⇾ "+"
  • Subtraction ⇾ "-"
  • Multiplication ⇾ "*"
  • Division ⇾ "/"
  • Modulo ⇾ "%"
  • Right shift ⇾ ">>"
  • Left shift ⇾ "<<"
  • Bitwise or ⇾ "||"
  • Bitwise and ⇾ "&&"

Known issues

  • Built-in bash operators like "*" or ">>" requires putting quotes around the expressions
  • Only two operands are supported, this is not intended to handle arbitrary large expressions

About

pcalc clone written in rust for the sole purpose of it being able to handle 64-bit numbers

Topics

Resources

Stars

Watchers

Forks

Languages