switched from trunc to truncf