# Truncate towards 0. $num = int($num * 1000000) / 1000000;