Skip to content

Provides functions to operate on very large numbers. Works similar to BigInteger

Notifications You must be signed in to change notification settings

shumatepf/BigIntCalc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 

Repository files navigation

Big Integer Calculator

Description

This program works similar to Java BigInteger in that operations are performed on Strings rather than ints. Each function breaks the Strings into arrays of individual ints and returns a String object. The 4 functions are:

  • Add
  • Subtract
  • Multiply
  • Divide

Instructions

This program requires the JAVA JDK to be installed.

Compile:
javac BigIntCalc.java

Run:
java BigInt [num1] [num2]

or

Call the static methods:
add(str1, str2)
subtract(str1, str2)
multiply(str1, str2)
divide(str1, str2)

Rules

[num1] >= [num2]
[num2] != 0

The program operates [num1] + [num2], [num1] - [num2], etc.

About

Provides functions to operate on very large numbers. Works similar to BigInteger

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages