I'm trying to use a scanf to get an input from the user of 2.1 or 2.2 to activate a function call and haven't found much to solve this.
I'm using a float type and when I watch it stores as 2.099999.... therefore the function does not run. Is there a way to suppress the stored number?
I did try using char and strcmp but it caused more problems.