How to set button widfth and height precisely?

I need to set the height and width of an icon button precisely. Is there a recommended way to do that?