mirror of
https://github.com/krgamestudios/Toy.git
synced 2026-04-15 14:54:07 +10:00
Added sign() and normalize() to docs
This commit is contained in:
@@ -53,6 +53,18 @@ This function returns the value of the lowest integer or float passed in. It can
|
||||
|
||||
This function returns the value of any integer or float passed in, rounded to the nearest whole number.
|
||||
|
||||
### sign(self): int
|
||||
|
||||
This function expects an integer or float as the value for `self`.
|
||||
|
||||
If `self` is below 0, this function returns -1. Otherwise it returns 1.
|
||||
|
||||
### normalize(self): int
|
||||
|
||||
This function expects an integer or float as the value for `self`.
|
||||
|
||||
If `self` is below 0, this function returns -1. Otherwise if `self` is above 0, this function returns 1. Otherwise it returns 0.
|
||||
|
||||
## Defined Compound Functions
|
||||
|
||||
### concat(self, other): any
|
||||
|
||||
Reference in New Issue
Block a user