Search results

toNumber :: Int -> Number

Converts an Int value back into a Number. Any Int is a valid Number so there is no loss of precision with this function.

P purescript-integers M Data.Int
toNumber :: Int -> Number

Converts an integer into a number.

toNumber 1 -- 1.0
P purescript-neon M Neon.Primitive.Int
dims :: forall a. Perturb a => a -> Number
P purescript-strongcheck M Test.StrongCheck.Perturb
timeStamp :: forall e. IsEvent e => e -> Number

The time in milliseconds between 01/01/1970 and when the event was dispatched.

P purescript-dom-classy M DOM.Classy.Event
diagonal :: forall s. ToSize Number s => s -> Number

Get the diagonal of a size

P purescript-polymorphic-vectors M Data.Vector.Polymorphic
fromInt :: forall a. IntLiftable a => Int -> a
P purescript-sparse-polynomials M Data.Sparse.Polynomial
length :: forall p. ToPos Number p => p -> Number

Get the length of a position vector

P purescript-polymorphic-vectors M Data.Vector.Polymorphic
abs :: forall a. Based a => a -> Number
P purescript-canvas-geometry M Graphics.Canvas.Geometry
button :: forall a. IsMouse a => a -> Number
P purescript-weber M Weber.Event
buttons :: forall a. IsMouse a => a -> Number
P purescript-weber M Weber.Event
charCode :: forall a. IsKeyboard a => a -> Number
P purescript-weber M Weber.Event
clientX :: forall a. IsMouse a => a -> Number
P purescript-weber M Weber.Event
clientY :: forall a. IsMouse a => a -> Number
P purescript-weber M Weber.Event
deltaMode :: forall a. IsWheel a => a -> Number
P purescript-weber M Weber.Event
deltaX :: forall a. IsWheel a => a -> Number
P purescript-weber M Weber.Event
deltaY :: forall a. IsWheel a => a -> Number
P purescript-weber M Weber.Event
deltaZ :: forall a. IsWheel a => a -> Number
P purescript-weber M Weber.Event
detail :: forall a. IsUi a => a -> Number
P purescript-weber M Weber.Event
durationToNumber :: forall d. Duration d => d -> Number
P purescript-game M Game.Util
elapsedTime :: forall a. IsAnimation a => a -> Number
P purescript-weber M Weber.Event
fromInt :: forall a. Ring a => Int -> a
P purescript-refined M Data.Refined.Internal
height :: forall a. IsPointer a => a -> Number
P purescript-weber M Weber.Event
int :: forall t. Corecursive t (SqlF EJsonF) => Int -> t
P purescript-sql-squared M SqlSquared.Constructors
keyCode :: forall a. IsKeyboard a => a -> Number
P purescript-weber M Weber.Event
layerX :: forall a. IsMouse a => a -> Number
P purescript-weber M Weber.Event
layerY :: forall a. IsMouse a => a -> Number
P purescript-weber M Weber.Event
length :: forall a. Measurable a => a -> Number
P purescript-canvas-geometry M Graphics.Canvas.Geometry
location :: forall a. IsKeyboard a => a -> Number
P purescript-weber M Weber.Event
movementX :: forall a. IsMouse a => a -> Number
P purescript-weber M Weber.Event
movementY :: forall a. IsMouse a => a -> Number
P purescript-weber M Weber.Event
offsetX :: forall a. IsMouse a => a -> Number
P purescript-weber M Weber.Event
offsetY :: forall a. IsMouse a => a -> Number
P purescript-weber M Weber.Event
ord :: forall a. Based a => a -> Number
P purescript-canvas-geometry M Graphics.Canvas.Geometry
pageX :: forall a. IsMouse a => a -> Number
P purescript-weber M Weber.Event
pageY :: forall a. IsMouse a => a -> Number
P purescript-weber M Weber.Event
pointerId :: forall a. IsPointer a => a -> Number
P purescript-weber M Weber.Event
pressure :: forall a. IsPointer a => a -> Number
P purescript-weber M Weber.Event
screenX :: forall a. IsMouse a => a -> Number
P purescript-weber M Weber.Event
screenY :: forall a. IsMouse a => a -> Number
P purescript-weber M Weber.Event
tangentialPressure :: forall a. IsPointer a => a -> Number
P purescript-weber M Weber.Event
tiltX :: forall a. IsPointer a => a -> Number
P purescript-weber M Weber.Event
tiltY :: forall a. IsPointer a => a -> Number
P purescript-weber M Weber.Event
timeStamp :: forall a. IsEvent a => a -> Number
P purescript-weber M Weber.Event
twist :: forall a. IsPointer a => a -> Number
P purescript-weber M Weber.Event
which :: forall a. IsKeyboard a => a -> Number
P purescript-weber M Weber.Event
width :: forall a. IsPointer a => a -> Number
P purescript-weber M Weber.Event

x

x :: forall a. IsMouse a => a -> Number
P purescript-weber M Weber.Event

y

y :: forall a. IsMouse a => a -> Number
P purescript-weber M Weber.Event
abs :: forall a. Ord a => Ring a => a -> a

The absolute value function. abs x is defined as if x >= zero then x else negate x.

P purescript-prelude M Data.Ord
negate :: forall a. Ring a => a -> a

negate x can be used as a shorthand for zero - x.

P purescript-prelude M Data.Ring