trunc and int functions return the same output for every float type inputs that I have tried.
They differ in the way that int can also be used to convert numerical strings to integers.
So I have a two-fold question:
I would like to know if, apart from strings, is there any input for which
truncandintgive different outputs?If not, when is it better to just use
truncto convert floating type numbers to integers?