@creately/round-n
    TypeScript icon, indicating that this package has built-in type declarations

    1.0.3 • Public • Published

    round-n

    Round numbers by any number.

    Examples

    roundN

    import { roundN } from '@creately/round-n';
     
    roundN(113, 2.5) // 112.5
    roundN(6, Math.PI) // 6.28...

    ceilN

    import { ceilN } from '@creately/round-n';
     
    ceilN(113, 2.5) // 115
    ceilN(6, Math.PI) // 6.28...

    floorN

    import { ceilN } from '@creately/round-n';
     
    ceilN(113, 2.5) // 112.5
    ceilN(6, Math.PI) // 3.14...

    Keywords

    none

    Install

    npm i @creately/round-n

    DownloadsWeekly Downloads

    3

    Version

    1.0.3

    License

    MIT

    Unpacked Size

    6.4 kB

    Total Files

    7

    Last publish

    Collaborators

    • damithcgx
    • linatrefai
    • sajeeva
    • rumaizcinergix
    • thisunravisara
    • nuwacgx
    • jziegelaar
    • chandika
    • vinochs
    • shashik_thiwanka
    • sasindu