argmax can be used with arrays of various data types, including floating-point numbers. The function compares elements based on their values, regardless of the data type.