Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

added math operations using bash dc , an older unix language #169

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

RhooneN
Copy link

@RhooneN RhooneN commented Oct 18, 2024

What type of PR is this? (check all applicable)

  • ♻️ Refactor
  • ✨ Feature
  • 🐛 Bug Fix
  • 👷 Optimization
  • 📝 Documentation Update
  • 🚩 Other

Description

Related Tickets & Documents

Added to documentation?

  • 📜 readme
  • 🙅 no documentation needed

[optional] What gif best describes this PR or how it makes you feel?

Copy link

what-the-diff bot commented Oct 18, 2024

PR Summary

  • New Markdown File Addition
    A new markdown file named 1001-bash-Math-with-dc.md has been added to the project.

  • Content Enhancement for Mathematical Operations

    • The contents now cover how to conduct simple math operations using dc, a tool that utilizes reverse Polish notation.
    • The new content also discusses the usage of bc, a utility that allows calculations and comparisons with arbitrary precision.
    • Improvements have been made to perform arithmetic operations without the requirement of external programs by using the innate abilities of bash.
    • Lastly, basic arithmetic via expr is also covered which includes its limitations with integers and its capability to support regular expressions.

@RhooneN
Copy link
Author

RhooneN commented Oct 21, 2024

First commit and first PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant