JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 7
  • Score
    100M100P100Q42982F
  • License BSD-3-Clause

Useful math tools

Package Exports

  • @wezom/toolkit-math
  • @wezom/toolkit-math/dist/index.js

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@wezom/toolkit-math) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

@wezom/toolkit-math

Useful math tools

Statements Branches Functions Lines
Statements Branches Functions Lines

Table of Content:

  1. Tools
    1. mathRound()
  2. Contributing
  3. License

Tools

mathRound()

Correction of rounding of decimal fractions.

Parameters:

Name Data type Argument Default value Description
value number some value
exp number optional

Returns: number


mathSum()

Calculates the sum of all arguments

Parameters:

Name Data type Argument Default value Description
numbers ...number[]

Returns: number

Examples:

mathSum(1, 3, 5); // => 9
mathSum(1.01, 1.02); // => 2.03

▲ Go Top | ▲ Table of Content


Contributing

Please fill free to create issues or send PR

Licence

BSD-3-Clause License