Skip to content

Instantly share code, notes, and snippets.

@bootleg224
Last active May 6, 2022
Embed
What would you like to do?
<strong>MATH HELPERS</strong>
<br/>
<br/>
<strong>A</strong> = {{submissionForm.integerA}}<br/>
<strong>B</strong> = {{submissionForm.integerB}}<br/>
<strong>BigN</strong> = {{submissionForm.largeIntegerA}}<br/>
<strong>X</strong> = {{submissionForm.decimalNumberA}}<br/>
<strong>Y</strong> = {{submissionForm.decimalNumberB}}
<hr/>
<strong>abs(A)</strong>: {{abs submissionForm.integerA}}<br/>
<strong>divide(B / A)</strong>: {{divide submissionForm.integerB submissionForm.integerA }}<br/>
<strong>minus(A-B)</strong>: {{minus submissionForm.integerA submissionForm.integerB }}<br/>
<strong>multiply(A*B)</strong>: {{multiply submissionForm.integerA submissionForm.integerB }}<br/>
<strong>plus(A+B)</strong>: {{plus submissionForm.integerA submissionForm.integerB }}<br/>
<strong>random between (A,B)</strong>: {{random submissionForm.integerA submissionForm.integerB }}<br/>
<strong>round(X)</strong>: {{round submissionForm.decimalNumberA}}<br/>
<br/>
<strong>abs(A)</strong>: {{abs submissionForm.integerA}}<br/>
<strong>divide(B / A)</strong>: {{divide submissionForm.integerB submissionForm.integerA }}<br/>
<strong>minus(A-B)</strong>: {{minus submissionForm.integerA submissionForm.integerB }}<br/>
<strong>multiply(A*B)</strong>: {{multiply submissionForm.integerA submissionForm.integerB }}<br/>
<strong>plus(A+B)</strong>: {{plus submissionForm.integerA submissionForm.integerB }}<br/>
<strong>random between (A,B)</strong>: {{random submissionForm.integerA submissionForm.integerB }}<br/>
<strong>round(X)</strong>: {{round submissionForm.decimalNumberA}}<br/>
<strong>multiply(X*Y)</strong>: {{multiply submissionForm.decimalNumberA submissionForm.decimalNumberB}}<br/>
<strong>toInt(X*Y)</strong>: {{toInt (multiply submissionForm.decimalNumberA submissionForm.decimalNumberB)}}
<hr/>
<strong>Byte Format (BigN):</strong> {{bytes submissionForm.largeIntegerA}} {{!shows disk space in how many bytes, kb, mb, gb}}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment