Choose where you’d like to start

smallest()

Overview

The smallest() function takes numberList as an argument, and returns the smallest number from the list

Return Type

  • Decimal

Syntax

<variable> = <numberList>.smallest();

(OR)

<variable> = smallest(<numberList> );
ParameterDescriptionData type
<variable>Variable which will contain the returned value.DECIMAL
<numberList>

The list from which the smallest value will be returned.

Numerical values can be specified in double quotes.

NUMBER LIST or DECIMAL LIST

Examples

numberList = {1, 5, 2, 3};
smallestValue= numberList.smallest();      // returns 1

Get Started Now

Execute