Merge pull request #30 from susyboy23/patch-1

Percent functions
This commit is contained in:
sam-astro 2022-06-02 22:07:01 -04:00 committed by GitHub
commit 33f28b898d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -145,14 +145,6 @@ func GetKey(keyName)
return b
}
// WIP
//func SplitThread(function)
//{
// ZS.System.SplitThread(function)
//}
////////////////////////////
// ↓ MADE BY KAPUTCHINO ↓ //
////////////////////////////
@ -213,5 +205,19 @@ func Perm(n, r)
return Fac(n) / Fac(n - r)
}
//////////////////////////////////////////
// ↓ MADE BY CONCHETUMARE_PRODUCTIONS ↓ //
//////////////////////////////////////////
func GetPercent(value, percent)
{
float temp = value * percent / 100
return temp
}
//gets 100% of number
func PercentToHundred(value, percent)
{
float temp = value * 100 / percent
return temp
}
)"
;