VOOZH about

URL: https://minecraft.wiki/w/User_talk:DoTheWooley

⇱ User talk:DoTheWooley – Minecraft Wiki


User talk:DoTheWooley

From Minecraft Wiki
Latest comment: 7 October 2023 by Dubstepv1 in topic Talk help:
Jump to navigation Jump to search

Hello

Talk help:

[edit source]
Latest comment: 7 October 20232 comments1 person in discussion

To go to my talk click my username then talk --Dubstepv1: the wiki addict (talk) 16:21, 7 October 2023 (UTC)

Can i have the account password for the scratch account? i wanna make the chain look better if thats ok with you --Dubstepv1: the wiki addict (talk) 22:07, 7 October 2023 (UTC)

Google sheets calculator:

[edit source]

function getFunction(Function,Data1,Data2) {

 if (Function == "Simplify Fraction") {
 return simplifyFraction(Data1,Data2)
 }
 if (Function == "Fraction to Decimal") {
 return convertFraction(Data1,Data2)
 }
 if (Function == "Decimal to Fraction") {
 return convertDecimalToFraction(Data1)
 }
 if (Function == "Fraction to Percent") {
 return convertFractionToPercent(Data1,Data2)
 }
 if (Function == "Decimal to Percent") {
 return convertDecimalToPercent(Data1)
 }
 if (Function == "Percent to Fraction") {
 return convertPercentToFraction(Data1)
 }
 if (Function == "Percent to Decimal") {
 return convertPercentToDecimal(Data1)
 }
 if (Function == "None") {
 return "Select Option"
 }
 if (Function == "Percent Of") {
 return percentOf(Data1,Data2)
 }
 if (Function == "Percent Off") {
 return percentOff(Data1,Data2)
 }
 if (Function == "Is Percent Of") {
 return isPercentOf(Data1,Data2)
 }

}


function simplifyFraction(Numerator, Denominator) {

 var gcd = findGCD(Numerator, Denominator);
 var simplifiedNumerator = Numerator / gcd;
 var simplifiedDenominator = Denominator / gcd;
 return simplifiedNumerator + "/" + simplifiedDenominator;

}

function findGCD(a, b) {

 if (b === 0) {
 return a;
 }
 return findGCD(b, a % b);

}

function convertFraction(Numerator, Denominator) {

 return Numerator / Denominator

}

function convertDecimal(Number) {

}

function convertDecimalToFraction(Decimal) {

 var tolerance = 1.0E-6;
 var h1 = 1;
 var h2 = 0;
 var k1 = 0;
 var k2 = 1;
 var b = Decimal;
 
 do {
 var a = Math.floor(b);
 var aux = h1;
 h1 = a * h1 + h2;
 h2 = aux;
 aux = k1;
 k1 = a * k1 + k2;
 k2 = aux;
 b = 1 / (b - a);
 } while (Math.abs(Decimal - h1 / k1) > Decimal * tolerance);
 
 return simplifyFraction(h1,k1)

}

function convertFractionToPercent(Numerator,Denominator) {

 var decimal = convertFraction(Numerator,Denominator)
 return decimal * 100 + "%"

}

function convertDecimalToPercent(Decimal) {

 return Decimal * 100 + "%"

}

function convertPercentToFraction(Percent) {

 decimal = Percent / 100
 return convertDecimalToFraction(decimal)

}

function convertPercentToDecimal(Percent) {

 return Percent / 100

}

function percentOf(Percent,Of) {

 return convertPercentToDecimal(Percent) * Of

}

function percentOff(Percent,Off) {

 return Off - percentOf(Percent,Off)

}

function isPercentOf(Number,Percent) {

 var math = 100 / Percent
 return math * Number

}

Retrieved from "https://minecraft.wiki/w/User_talk:DoTheWooley?oldid=2345652"

Navigation menu