HI D., just wanted to say, in the midst of everything else other people have told you, you know, babies can and do whine also. It probably is for the fustration levels that others mentioned already but it does happen.
I think one way to approach it is this - whining is tone. you not wanting to give in, means you don't like the tone of what you are being asked to do. I find that I have (always) reacted pretty strongly to the tone that my babies took with me. I HATED it when they screamed for milk like I was starving them or torturing them or something even at a very young age when I knew that they were just hungry.
My solution was this: to not give them milk (breastfeed) until they calmed down and took a different tone - this worked by reinforciing that I liked it when they took a cheerful more calm tone with me. I tried to remain positive and cheerful in my own tonal approach with them as we worked through this which in itself was difficult but in the end, I felt like it made a HUGE difference in our interactions. And I found like my babies found other ways to tell me they were hungry, and also they began to trust that I would feed them/come to them/or whatever they were screaming about.
so if your baby is whining on the floor about something, get down with them, give them attention, anything positive, loving, cuddling, touching, cheerful, sing-songy etc. but don't give them what they really want until they change their tone. Once they do that, give them what they really want right away. And comment directly how happy you are to see them change their tone "There's my sunshine boy!"
just a thought.