Float methods syntax: Difference between revisions
m (Automatically generated page update) |
m (Automatically generated page update) |
||
Line 30: | Line 30: | ||
<p class="syntax" style="margin-bottom:0px; border-bottom:1px solid; border-left:1px solid; border-right:1px solid; border-top: none; margin-top:0px;"><span class="term">%number</span><span class="literal"> =</span> <span class="term">float</span><span class="literal">:[[NextPrime (Float function)|NextPrime]]</span></p> | <p class="syntax" style="margin-bottom:0px; border-bottom:1px solid; border-left:1px solid; border-right:1px solid; border-top: none; margin-top:0px;"><span class="term">%number</span><span class="literal"> =</span> <span class="term">float</span><span class="literal">:[[NextPrime (Float function)|NextPrime]]</span></p> | ||
<p class="syntax" style="margin-bottom:0px; border-bottom:1px solid; border-left:1px solid; border-right:1px solid; border-top: none; margin-top:0px;"><span class="term">%number</span><span class="literal"> =</span> <span class="term">float</span><span class="literal">:[[PreviousPrime (Float function)|PreviousPrime]]</span></p> | <p class="syntax" style="margin-bottom:0px; border-bottom:1px solid; border-left:1px solid; border-right:1px solid; border-top: none; margin-top:0px;"><span class="term">%number</span><span class="literal"> =</span> <span class="term">float</span><span class="literal">:[[PreviousPrime (Float function)|PreviousPrime]]</span></p> | ||
<p class="syntax" style="margin-bottom:0px; border-bottom:1px solid; border-left:1px solid; border-right:1px solid; border-top: none; margin-top:0px;"><span class="term">%number</span><span class="literal"> =</span> <span class="term">float</span><span class="literal">:[[Round (Float function)|Round]]</span><span class="squareb">[</span><span class="literal">(</span> <span class="squareb">[</span><span class="term" title="Number"> | <p class="syntax" style="margin-bottom:0px; border-bottom:1px solid; border-left:1px solid; border-right:1px solid; border-top: none; margin-top:0px;"><span class="term">%number</span><span class="literal"> =</span> <span class="term">float</span><span class="literal">:[[Round (Float function)|Round]]</span><span class="squareb">[</span><span class="literal">(</span> <span class="squareb">[</span><span class="term" title="Number">dp</span><span class="squareb">]</span><span class="literal">)</span><span class="squareb">]</span></p> | ||
<p class="syntax" style="margin-bottom:0px; border-bottom:1px solid; border-left:1px solid; border-right:1px solid; border-top: none; margin-top:0px;"><span class="term">%string</span><span class="literal"> =</span> <span class="term">float</span><span class="literal">:[[SecondsToString (Float function)|SecondsToString]]</span><span class="literal">(</span> <span class="term" title="String">format</span><span class="literal">)</span></p> | <p class="syntax" style="margin-bottom:0px; border-bottom:1px solid; border-left:1px solid; border-right:1px solid; border-top: none; margin-top:0px;"><span class="term">%string</span><span class="literal"> =</span> <span class="term">float</span><span class="literal">:[[SecondsToString (Float function)|SecondsToString]]</span><span class="literal">(</span> <span class="term" title="String">format</span><span class="literal">)</span></p> | ||
<p class="syntax" style="margin-bottom:0px; border-bottom:1px solid; border-left:1px solid; border-right:1px solid; border-top: none; margin-top:0px;"><span class="term">%number</span><span class="literal"> =</span> <span class="term">float</span><span class="literal">:[[SquareRoot (Float function)|SquareRoot]]</span></p> | <p class="syntax" style="margin-bottom:0px; border-bottom:1px solid; border-left:1px solid; border-right:1px solid; border-top: none; margin-top:0px;"><span class="term">%number</span><span class="literal"> =</span> <span class="term">float</span><span class="literal">:[[SquareRoot (Float function)|SquareRoot]]</span></p> | ||
<p class="syntax" style="margin-bottom:0px; border-bottom:1px solid; border-left:1px solid; border-right:1px solid; border-top: none; margin-top:0px;"><span class="term">%number</span><span class="literal"> =</span> <span class="term">float</span><span class="literal">:[[ToDegrees (Float function)|ToDegrees]]</span></p> | <p class="syntax" style="margin-bottom:0px; border-bottom:1px solid; border-left:1px solid; border-right:1px solid; border-top: none; margin-top:0px;"><span class="term">%number</span><span class="literal"> =</span> <span class="term">float</span><span class="literal">:[[ToDegrees (Float function)|ToDegrees]]</span></p> | ||
<p class="syntax" style="margin-bottom:0px; border-bottom:1px solid; border-left:1px solid; border-right:1px solid; border-top: none; margin-top:0px;"><span class="term">%number</span><span class="literal"> =</span> <span class="term">float</span><span class="literal">:[[ToFloatPower (Float function)|ToFloatPower]]</span><span class="literal">(</span> <span class="term" title="Number"> | <p class="syntax" style="margin-bottom:0px; border-bottom:1px solid; border-left:1px solid; border-right:1px solid; border-top: none; margin-top:0px;"><span class="term">%number</span><span class="literal"> =</span> <span class="term">float</span><span class="literal">:[[ToFloatPower (Float function)|ToFloatPower]]</span><span class="literal">(</span> <span class="term" title="Number">exponent</span><span class="literal">)</span></p> | ||
<p class="syntax" style="margin-bottom:0px; border-bottom:1px solid; border-left:1px solid; border-right:1px solid; border-top: none; margin-top:0px;"><span class="term">%number</span><span class="literal"> =</span> <span class="term">float</span><span class="literal">:[[ToIntegerPower (Float function)|ToIntegerPower]]</span><span class="literal">(</span> <span class="term" title="Number"> | <p class="syntax" style="margin-bottom:0px; border-bottom:1px solid; border-left:1px solid; border-right:1px solid; border-top: none; margin-top:0px;"><span class="term">%number</span><span class="literal"> =</span> <span class="term">float</span><span class="literal">:[[ToIntegerPower (Float function)|ToIntegerPower]]</span><span class="literal">(</span> <span class="term" title="Number">exponent</span><span class="literal">)</span></p> | ||
<p class="syntax" style="margin-bottom:0px; border-bottom:1px solid; border-left:1px solid; border-right:1px solid; border-top: none; margin-top:0px;"><span class="term">%number</span><span class="literal"> =</span> <span class="term">float</span><span class="literal">:[[ToPower (Float function)|ToPower]]</span><span class="literal">(</span> <span class="term" title="Number"> | <p class="syntax" style="margin-bottom:0px; border-bottom:1px solid; border-left:1px solid; border-right:1px solid; border-top: none; margin-top:0px;"><span class="term">%number</span><span class="literal"> =</span> <span class="term">float</span><span class="literal">:[[ToPower (Float function)|ToPower]]</span><span class="literal">(</span> <span class="term" title="Number">exponent</span><span class="literal">)</span></p> | ||
<p class="syntax" style="margin-bottom:0px; border-bottom:1px solid; border-left:1px solid; border-right:1px solid; border-top: none; margin-top:0px;"><span class="term">%number</span><span class="literal"> =</span> <span class="term">float</span><span class="literal">:[[ToRadians (Float function)|ToRadians]]</span></p> | <p class="syntax" style="margin-bottom:0px; border-bottom:1px solid; border-left:1px solid; border-right:1px solid; border-top: none; margin-top:0px;"><span class="term">%number</span><span class="literal"> =</span> <span class="term">float</span><span class="literal">:[[ToRadians (Float function)|ToRadians]]</span></p> |
Revision as of 17:18, 4 February 2011
The syntax for each of the Float class methods is shown below.
Square brackets indicate optional elements of the method invocation. See also the notation conventions for methods and the List of Float methods.
%number = float:Absolute
%number = float:Antilog
%number = float:Antilog10
%number = float:Antilog2
%number = float:AntilogE
%result = float:BitAndInteger( andBits)
%result = float:BitOffInteger( offBits)
%result = float:BitOnInteger( onBits)
%result = float:BitOrInteger( orBits)
%result = float:BitShiftLeftInteger( shift)
%result = float:BitShiftRightInteger( shift)
%number = float:BitXorInteger( xorBits)
%string = float:DaysToString( format)
%number = float:Div( divisor)
%string = float:FloatToBinary
%string = float:FloatToString[( [Length= number], [DP= number])]
%string = float:IntegerToBinary( number, [Signed= boolean])
%string = float:IntegerToHex( number, [Signed= boolean])
%boolean = float:IsPrime
%number = float:Log
%number = float:Log10
%number = float:Log2
%number = float:LogE
%string = float:MillisecondsToString( format)
%number = float:Mod( divisor)
%number = float:Modulus( divisor)
%number = float:NextPrime
%number = float:PreviousPrime
%number = float:Round[( [dp])]
%string = float:SecondsToString( format)
%number = float:SquareRoot
%number = float:ToDegrees
%number = float:ToFloatPower( exponent)
%number = float:ToIntegerPower( exponent)
%number = float:ToPower( exponent)
%number = float:ToRadians