@writetome51/get-right-of-decimal

2.0.2 • Public • Published

getRightOfDecimal(float): string

Receives float and returns the digits on the right of the decimal.
The digits are returned as a string in order to preserve any zeros at the beginning.

Examples

getRightOfDecimal(-0.0001) --> '0001'

getRightOfDecimal(2.11) --> '11'

Installation

npm i @writetome51/get-right-of-decimal

Loading

import {getRightOfDecimal} from '@writetome51/get-right-of-decimal';

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 2.0.2
    0
    • latest

Version History

Package Sidebar

Install

npm i @writetome51/get-right-of-decimal

Weekly Downloads

0

Version

2.0.2

License

MIT

Unpacked Size

2.58 kB

Total Files

4

Last publish

Collaborators

  • writetome51