divide

Modified on Tue, 22 Aug 2023

Description

Divide one number by another

Syntax

divide(dividend, divisor)

Parameters

Input ParameterTypeDescription
dividendnumberThe number to be divided
divisornumberThe number by which the dividend is to be divided

Return value

Type
number

Sample

ExampleResultDescription
divide(10, 2)5Returns the quotient after dividing the dividend by the divisor

To view all the Math and Number functions, click here.