Class: E

E

This is the emulation of the built-in JavaScript class for Espruino utility functions.

Constructor

new E()

Author:
  • Loris Tissino (http://loris.tissino.it)
License:
  • MIT
Source:
See:

Methods

(static) clip(x, min, max) → {float}

Clip a number to be between min and max (inclusive).
Parameters:
Name Type Description
x float A floating point value to clip
min float The smallest the value should be
max float The largest the value should be
Source:
Returns:
The value of x, clipped so as not to be below min or above max.
Type
float