From fff73e5f141df6afa83f06a0e0766aaa6af01848 Mon Sep 17 00:00:00 2001 From: ConchetumareDev <89088882+susyboy23@users.noreply.github.com> Date: Wed, 1 Jun 2022 20:18:22 -0400 Subject: [PATCH 1/2] idk, maybe someone will use it :) --- ZSharp/ZS.h | 20 ++++++++++++-------- 1 file changed, 12 insertions(+), 8 deletions(-) diff --git a/ZSharp/ZS.h b/ZSharp/ZS.h index 0e1b68b..01cbbf9 100644 --- a/ZSharp/ZS.h +++ b/ZSharp/ZS.h @@ -145,14 +145,6 @@ func GetKey(keyName) return b } -// WIP -//func SplitThread(function) -//{ -// ZS.System.SplitThread(function) -//} - - - //////////////////////////// // ↓ MADE BY KAPUTCHINO ↓ // //////////////////////////// @@ -213,5 +205,17 @@ 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 percent2hundred(value, percent) + float temp = value * 100 / percent + return temp )" ; From 0a8b8f47d98de4316d3b99150986bbbc8ffa222a Mon Sep 17 00:00:00 2001 From: sam-astro <77079540+sam-astro@users.noreply.github.com> Date: Thu, 2 Jun 2022 22:05:58 -0400 Subject: [PATCH 2/2] Fix formatting and curly brackets --- ZSharp/ZS.h | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/ZSharp/ZS.h b/ZSharp/ZS.h index 01cbbf9..18d9e02 100644 --- a/ZSharp/ZS.h +++ b/ZSharp/ZS.h @@ -205,17 +205,19 @@ func Perm(n, r) return Fac(n) / Fac(n - r) } -//////////////////////////// +////////////////////////////////////////// // ↓ MADE BY CONCHETUMARE_PRODUCTIONS ↓ // -//////////////////////////// -func getPercent(value, percent) +////////////////////////////////////////// +func GetPercent(value, percent) { float temp = value * percent / 100 return temp } //gets 100% of number -func percent2hundred(value, percent) +func PercentToHundred(value, percent) +{ float temp = value * 100 / percent return temp +} )" ;