convert objects to num before using toFixed