What, exactly, is the purpose of the intval() function for a base-10 calculation? Isn’t it the exact same as a typecast, just slower? In all of my Googling, I haven’t found a single benefit. What am I missing?
What, exactly, is the purpose of the intval() function for a base-10 calculation? Isn’t
Share
intval()lets you specify a base to convert from.For simple base-10 conversions, there’s no reason to use
intval().