Value1 / Value2 Value1 / Value2

Value1

Number Number

The number to be divided (the dividend ).

Value2

Number Number

The number that the first number should be divided with.

Returns

Number Number

The decimal quotient resulting from dividing a number by another number.

Divides one number by another and returns the result. 12 / 412 / 4 returns 3.

This operator also works with arrays. { 10, 5 } / 2{ 10; 5 } / 2 returns the array { 5, 2.5 }{ 5; 2,5 } (equivalent to { 10 / 2, 5 / 2 }{ 10 / 2; 5 / 2 }) and { 10, 5 } / { 5, 2 }{ 10; 5 } / { 5; 2 } returns the array { 2, 2.5 }{ 2; 2,5 } (equivalent to { 10 / 5, 5 / 2 }{ 10 / 5; 5 / 2 }).

Related functions

Use QUOTIENT instead to get an integer result— 5 / 25 / 2 returns 2.5, but QUOTIENT (5, 2) QUOTIENT (5; 2) returns 2.

Use MOD to get the integer remainder— MOD (5, 2) MOD (5; 2) returns 1.

Examples

12 / 4
12 / 4

Returns 3.

5 / 2
5 / 2

Returns 2.5.

Returns 2, the integer quotient.

MOD (5, 2)
MOD (5; 2)

Returns 1, the integer remainder.

{ 10, 5 } / 2
{ 10; 5 } / 2

Returns the array { 5, 2.5 }{ 5; 2,5 }, equivalent to { 10 / 2, 5 / 2 }{ 10 / 2; 5 / 2 }.

{ 10, 5 } / { 5, 2 }
{ 10; 5 } / { 5; 2 }

Returns the array { 2, 2.5 }{ 2; 2,5 }, equivalent to { 10 / 5, 5 / 2 }{ 10 / 5; 5 / 2 }.

fxEngine Shell Want this in your own terminal? A standalone version is coming. Get notified.
Loading fxEngine Shell