Skip to content

a01sa01to/java-calculator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

50 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Simple Calculator

Simple Calculator made with Java, JavaFX

Checked Environment

I've checked this app works with...

  • Windows 11
  • java version "19.0.2" 2023-01-17
  • Java(TM) SE Runtime Environment (build 19.0.2+7-44)
  • Java HotSpot(TM) 64-Bit Server VM (build 19.0.2+7-44, mixed mode, sharing)
  • JavaFX 19.0.2.1

Layout

Equation
CBS()e
789/abs
456*mod
123-log
0.=+^

Calculation Order

  1. Inside Brackets
  2. ^, log
  3. *, /, mod
  4. +, -

(same as we use usually)

Functions

  • C : Clears the Equation
  • BS : Removes 1 character
  • ^ : "x ^ y" = $x ^ y$
  • log : "x log base y" = $\log_y (x)$
  • mod : Modulo
  • abs : Absolute value

Keyboard Input

You can use your keyboard to input, instead of the buttons.

  • C : Delete
  • BS : BackSpace
  • mod : %
  • abs : | (vertical bar)
  • log : L
  • = : Enter or =
  • others : corresponding keys