def get_cutoff(value: float, cutoff: Optional[float] = None) -> int:
cutoff = cutoff if cutoff is not None else <NUM_LIT:0><EOL>if value > cutoff:<EOL><INDENT>return <NUM_LIT:1><EOL><DEDENT>if value < (-<NUM_LIT:1> * cutoff):<EOL><INDENT>return - <NUM_LIT:1><EOL><DEDENT>return <NUM_LIT:0><EOL>
Assign if a value is greater than or less than a cutoff.