sign

compas_fab.utilities.sign(number)[source]

Returns the sign of a number: +1 or -1.

Parameters:
numberfloat

A number.

Returns:
int

+1 if the number has positive sign, otherwise -1.