UNPKG
@evojs/math
Version:
latest (0.5.0)
0.5.0
0.4.0
0.3.0
0.1.0
0.0.0
Nodejs math extension
github.com/evotool/js-math
evotool/js-math
@evojs/math
/
subp.function.js
9 lines
(8 loc)
•
224 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
"use strict"
;
Object
.
defineProperty
(
exports
,
"__esModule"
, {
value
:
true
});
exports
.
subp
=
void
0
;
function
subp
(
value, percent
) {
var
percentCoef = percent /
100
;
return
value * (
1
- percentCoef); }
exports
.
subp
= subp;