To take the quizzes, you must log in.

*Username:***student***Password:***Formulas.1**You can view this site in

the language of your choice.

- trunc
### trunc

# trunc

trunc is not a built-in function of the Formulas question, but you can get the same result using the following two assignments:

floorAbs = floor(abs(x));

trunc = (x>=0)?floorAbs:-floorAbs;