566 packages matching “math.floor”
math-floor
v1.0.1 · 10 years ago
Rounds a numeric value toward negative infinity.
No known vulnerabilities
reliable-round
v1.0.10 · 6 years ago
A rounding library for JavaScript that behaves predictably (unlike Math.round, Math.floor, Math.ceil).
No known vulnerabilities
date-floor
v0.0.4 · 12 years ago
Like Math.floor but for Date objects
No known vulnerabilities
discontinuous-range
v1.0.3 · 1 year ago
for adding, subtracting, and indexing discontinuous ranges of numbers
No known vulnerabilities
@kuropaws/simpler-math-random
v0.3.0 · 1 month ago
Remove the boilerplate code it takes to get a simple random number with Math.random(), Math.floor, etc. into just one function
No known vulnerabilities
cirnornd
v0.2.0 · 7 years ago
This is a module for simplifying math.floor() and stuff like that
No known vulnerabilities
wrcom
v18.0.3 · 4 years ago
``` import Service from 'wrcom'; class UserService extends Service { // this will be same for all instances and any other property of this class public rand = Math.floor(Math.random() * 5000); constructor(){ super(); } } export default UserService `
No known vulnerabilities
maxmin
v4.1.0 · 2 years ago
Get a pretty output of the original, minified, gzipped size of a string or buffer: 130 B → 91 B → 53 B (gzip)
No known vulnerabilities
simple-eval
v2.0.1 · 1 month ago
Simple JavaScript expression evaluator
No known vulnerabilities
tripletea
v1.0.0 · 2 years ago
function getRandomNumber(min, max) { return Math.floor(Math.random() * (max - min)) + min; }
No known vulnerabilities
fixed-floor
v1.0.0 · 8 years ago
Math.floor with fixed, formats a number using fixed-point notation and returns a number.
No known vulnerabilities
nm-npm
v1.0.0 · 5 years ago
```js class Moment{ constructor(time){ this.time=time } change(){ let date=new Date(this.time); let nowtime=new Date(); let newtime=nowtime-date; let year=Math.floor(newtime/1000/60/60/24/365), month=Math.floor(newt
No known vulnerabilities
@kiroboio/fct-plugins
v1.3.101 · 1 year ago
Plugins to create Fct calls
No known vulnerabilities
drange
v2.0.1 · 6 years ago
For adding, subtracting, and indexing discontinuous ranges of numbers
No known vulnerabilities
generate-passphrase
v1.3.0 · 3 years ago
Zero dependency module - Secure random passphrase
No known vulnerabilities
@convex-dev/aggregate
v0.2.2 · 1 month ago
Convex component to calculate counts and sums of values for efficient aggregation.
No known vulnerabilities
frasespolar
v1.0.0 · 3 years ago
```Javascript function obtenerFrase(){ let indice=Math.floor(Math.random()*9) return frases[indice] } ```
No known vulnerabilities
@stefanobalocco/tersercompanion
v1.0.5 · 3 days ago
Optimizes JavaScript source by aliasing repeated expressions.
No known vulnerabilities
steam-totp
v2.1.2 · 4 years ago
Generate Steam-style TOTP codes given a secret
No known vulnerabilities
koa2-winston
v3.2.1 · 1 year ago
koa2 version winston logger like express-winston
No known vulnerabilities