The function returns 1.0 when the input is 0, -1, or 1 and returns 0.0 for all other input values.
