Skip to content

damroyalty/merpulator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

calcuhater

a simple desktop calculator application built with rust and egui.

made it just to get more familiar with rust. directions below i had cursor write out for me, so i'll edit later.

Prerequisites

Make sure you have Rust installed on your system. If not, install it from rustup.rs.

Building and Running

Run the calculator:

cargo run

Build in release mode (optimized):

cargo build --release

The executable will be located at target/release/calculator.exe (Windows) or target/release/calculator (Linux/Mac).

Usage

The calculator opens as a desktop window with:

  • Number buttons: 0-9 for entering numbers
  • Operation buttons: +, -, *, / for mathematical operations
  • Clear button (C): Clears the current calculation
  • Equals button (=): Performs the calculation
  • Decimal point (.): For decimal numbers

Features:

  • Basic arithmetic operations (addition, subtraction, multiplication, division)
  • Decimal number support
  • Division by zero error handling
  • Clean, modern GUI interface

Example Usage

  1. Click number buttons to enter the first number (e.g., 5)
  2. Click an operator button (e.g., +)
  3. Click number buttons to enter the second number (e.g., 3)
  4. Click = to see the result (8)
  5. Click C to clear and start a new calculation

Project Structure

calcuhater/
├── Cargo.toml          # Project configuration with egui dependencies
├── README.md           # This file
└── src/
    └── main.rs         # Main calculator GUI code

Technologies Used

  • Rust: Systems programming language
  • egui: Immediate mode GUI framework
  • eframe: Native framework for egui applications

About

getting more familiar with rust

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages