Calculator Block

Modified: 2008/05/13 09:27 by 166.214.29.42 - Categorized as: Popfly Blocks

Table of Contents [Hide/Show]

Can perform some simple (and some not so simple) math operations.

Edit

Operations

Edit

getRandomWholeNumber

Returns a whole random number (integer) between 0 and the upper bound

Inputs

NameDescription
upperBoundThe upper bound of the range. Must be greater than 0.

Outputs

Name
integer

Edit

getRandomNumber

Returns a random number between 0 and the upper bound

Inputs

NameDescription
upperBoundThe upper bound of the range. Must be greater than 0.

Outputs

Name
decimal

Edit

getMaximum

Returns the maximum from a set of numbers

Inputs

NameDescription
numbersA list of numbers

Outputs

Name
decimal

Edit

getMinimum

Returns the minimum from a set of numbers

Inputs

NameDescription
numbersA list of numbers

Outputs

Name
decimal

Edit

round

Rounds the input number to the nearest whole number.

Inputs

NameDescription
numberThe number to round.

Outputs

Name
integer

Edit

add

Adds two numbers.

Inputs

NameDescription
number1The first number to add.
number2The second number to add.

Outputs

Name
decimal

Edit

subtract

Subtracts one number from another.

Inputs

NameDescription
number1The first number.
number2The number to subtract from the first.

Outputs

Name
decimal

Edit

multiply

Multiplies two numbers.

Inputs

NameDescription
number1The first number to multiply.
number2The second number to multiply.

Outputs

Name
decimal

Edit

divide

Divides one number into another.

Inputs

NameDescription
numeratorThe numerator.
denominatorThe denominator.

Outputs

Name
decimal


Edit

Objects

Details about type definitions can be found on the Block Metadata Type System page.

Privacy. Terms of Use. Trademarks.
ScrewTurn Wiki version 2.0.22. Some of the icons created by FamFamFam.