Square Root

BlockMath

Get the square root (sqrt) of a number.

Inputs

NumberRequired

Number to square root.

Example: 9

Outputs

Square Root

Square root of the provided number.

Example: 3

Build a bot using blocks like Square Root

Use this block in our visual flow editor. Bots are hosted 24/7 for free on inventor.bot.

Advanced Documentation

This documentation can be useful when using code mode. View as Markdown

ID: square_root_basic
  • Value block: it can be used directly inside expressions, e.g. "Result: " + square_root_basic(Args{...}).

Inputs

FieldInventScript nameValue
Numbernumbere.g. "9"

Outputs

FieldInventScript nameValue
Square Rootsquare_roote.g. "3"

Example InventScript

squareRoot := square_root_basic(Args{number: 9})
send_text_message(Args{
	channel_id:      trigger.channel_id,
	message_content: "Square Root: " + squareRoot,
})

More math blocks