Start sharing components as a team!Share components as a team!Join Bit to build your applications faster.Get Started Free

divide

v0.26.1arrow_drop_down
v0.26.1
STATUS
Passing
DOWNLOADS
73
LICENSE
MIT
VISIBILITY
Public
PUBLISHED
7 months ago
SIZE
802 B
subject
Divides two numbers.
1 contributor
Use divide in your project ?
Copied
npm i @bit/ramda.ramda.divide
Set Bit as a scoped registryLearn more
npm config set '@bit:registry' https://node.bit.dev
Component Example
React
React
Vue
Angular
Add dependency... help_outline
Just
import
any of the 1 million components
and packages in Bit or NPM to the example.
import Button from '@bit/grommet.grommet.button';
import Lodash from 'lodash';
revert changes
reload
toggle layout
maximize
divide(71, 100);
modifieddraft
chevron_left
chevron_right
divide (
a:Number,
b:Number
) : Number

Divides two numbers. Equivalent to a / b.

Example
R.divide(71, 100); //=> 0.71

     const half = R.divide(R.__, 2);
     half(42); //=> 21

     const reciprocal = R.divide(1);
     reciprocal(4);   //=> 0.25
Arguments
a: Number

The first value.

b: Number

The second value.

Returns
Number

The result of `a / b`.