B=(({{0, 1, -(Sqrt[3])}, {7, Pi, E}, {-3/4, 6, 8}}));
Tr[B]
N[%]
Total[Diagonal[B]]//N