I want to put all elements of the array vertically centered. I have tried \arraystretch command to do so, but it is not working.
Code:
\documentclass[12 pt, a4paper]{book}
\usepackage{multicol}
\usepackage{geometry}
\geometry{
a4paper,
total={170 mm,257 mm},
left=20 mm,
top=20 mm,
}
\usepackage{amsmath}
\usepackage{amsfonts}
\usepackage{amssymb}
\usepackage{soul}
\usepackage{indentfirst}
\usepackage[utf8]{inputenc}
\usepackage{palatino}
\usepackage{color}
\usepackage{graphicx}
\usepackage{fancyhdr}
\usepackage{array}
\usepackage{enumitem}
\usepackage{mathtools}
\setlength{\parindent}{2em}
\begin{document}
\indent \textbf{Step 2 :} \hspace{0.2 cm} Find the hexa-decimal equivalent of the integer part.
\[
\hspace{-2 cm}
\begin{array}{c|c|c}
\renewcommand{\arraystretch}{5}
\textbf{Radix} & \textbf{Integer} & \textbf{Remainder}\\
\hline
16 & 620 & \mathrm{C}\\
\hline
16 & 38 & 6\\
\hline
16 & 2 & 2\\
\hline
& 0 & \\
\end{array}
\]
\end{document}
The output obtained from this code is as follows:
Output:
Can anyone help me to get the elements of array vertically centered?