So I made myself a simple little queue class of doubles that goes below. Surprisingly printinq it in relative order gives different output as absolute printing (.print() method)
class DoubleQueue{
private:
double* queue;
int size;
int position;
public:
DoubleQueue(int size){
this->size = size;
queue = new double[size];
}
As you can see, last value should be 1 in my opinion. Can anyone explain this please? 1.66967e-307 can't be == 1 even when considering precision issues right?