Basically I need a way to make sure that something like 1.1 will be stored as 1.1 and not as 1.1000000088...

I guess one way would be to multiply each number by 100000 and cast it into a long int, but because of the way my programm is designed, this wouldn't be all that efficient to implement...

Is there another way to solve this problem, maybe a method that "cuts off" the unwanted part?

Any help would be appreciated...