MathParser: Add namespace blocks to avoid issues like 223231f
MathParser: Use std::trunc instead of custom implementation