sign
- compas_fab.utilities.sign(number)[source]
Returns the sign of a number: +1 or -1.
- Parameters
number (float) – A number.
- Returns
int – +1 if the number has positive sign, otherwise -1.
Returns the sign of a number: +1 or -1.
number (float) – A number.
int – +1 if the number has positive sign, otherwise -1.
A computational framework for collaboration and research in Architecture, Engineering, Fabrication, and Construction.
Copyright © 2017-2021 compas-dev