Skip to content

Rational implementation in C++ to perform rational arithmetics

Notifications You must be signed in to change notification settings

saparmuratx/Rational

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Rational

Rational implementation in C++ to perform rational arithmetics

Platforms:

Linux

Run & Compile:

to compile:
    $ make
to run:
    $ ./main

Contructors:

default contructor:
Rational <int> a; // a = 0/1

contructor with denominator and numerator:
Rational <int> x(1, 2);

Getters:

den()
num()

Operators:

+
-
/
*

Comparison:

>
<
>=
<=
==
!=

IO Operator:

<<
>>

About

Rational implementation in C++ to perform rational arithmetics

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published