Search results

30 packages found

Unicode aware string truncation that given a max byte size will truncate the string to or just below that size

published version 1.0.0, 9 years ago18 dependents licensed under $MIT
1,309,886

Round a double-precision floating-point number toward zero.

published version 0.2.2, 4 months ago16 dependents licensed under $Apache-2.0
227,957

A Node-Red node to perform basic mathematical calculations

published version 1.0.6, a year ago0 dependents licensed under $Apache-2.0
12,450

Rounds a numeric value toward zero.

published version 1.0.0, 9 years ago3 dependents licensed under $MIT
4,476

A rounding library for JavaScript that behaves predictably (unlike Math.round, Math.floor, Math.ceil).

published version 1.0.10, 5 years ago0 dependents licensed under $MIT
2,267

ES6 Math.trunc() ponyfill

published version 1.0.1, 8 years ago2 dependents licensed under $MIT
2,379

ellipsis text depending on number of lines or number of chars

published version 0.1.6, 8 years ago0 dependents licensed under $MIT
1,035

Truncate a string in the middle to a specified length.

published version 0.2.2, 4 months ago1 dependents licensed under $Apache-2.0
1,422

Truncate a string to a specified length.

published version 0.2.2, 4 months ago1 dependents licensed under $Apache-2.0
1,081

Iterable slicing functions for JavaScript

published version 1.0.2, 3 years ago7 dependents licensed under $AGPL-3.0
541

Round a numeric value to the nearest power of 10 toward zero.

published version 0.3.0, 4 months ago2 dependents licensed under $Apache-2.0
124

Round a numeric value to the nearest power of two toward zero.

published version 0.3.0, 4 months ago2 dependents licensed under $Apache-2.0
124

A collection of mathematical utility functions including operations like clamp, lerp, normalize, and more.

published version 0.0.9, 2 months ago0 dependents licensed under $GPL-3.0-only
67

Round a single-precision floating-point number toward zero.

published version 0.2.2, 4 months ago4 dependents licensed under $Apache-2.0
124

Round a numeric value to the nearest multiple of 10^n toward zero.

published version 0.3.0, 4 months ago2 dependents licensed under $Apache-2.0
96

Create an iterator which rounds each iterated value to the nearest power of two toward zero.

published version 0.2.2, 4 months ago1 dependents licensed under $Apache-2.0
64

Create an iterator which rounds each iterated value to the nearest power of 10 toward zero.

published version 0.2.2, 4 months ago1 dependents licensed under $Apache-2.0
59

Round a numeric value to the nearest multiple of b^n toward zero.

published version 0.3.0, 4 months ago1 dependents licensed under $Apache-2.0
54

Round a numeric value to the nearest number toward zero with N significant figures.

published version 0.3.0, 4 months ago1 dependents licensed under $Apache-2.0
31

Create an iterator which rounds each iterated value toward zero.

published version 0.2.2, 4 months ago1 dependents licensed under $Apache-2.0
30