Skip to content

Instantly share code, notes, and snippets.

View Jakob-PB's full-sized avatar

Jakob-PB

View GitHub Profile
@Jakob-PB
Jakob-PB / reducefraction.cpp
Created March 8, 2018 23:34
A fun little shortcut I created to reduce fractions... until I found the Math>Frac function on my TI-84.
#include<iostream>
#include<cmath>
using namespace std;
bool is_integer(float k)
{
return std::floor(k) == k;
}