You get exactly 50% of DNA from each parent. That is the only “exact” thing about DNA. While you get about 25% from each grandparent, that number is an estimate. DNA is inherited randomly, so you might get a higher percentage from one grandparent than another.
Here is how much DNA you inherit: