If you want to set the Dock size in macOS to a specific value, you can use the Terminal to do so:
defaults write com.apple.dock tilesize -int 32; killall Dock
This will set the icon size to 32px, and then restart Dock. To get the current value of the Dock size:
defaults read com.apple.dock tilesize
Send a link to this post to yourself or a friend.