Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

purescript/purescript-numbers

Open more actions menu

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

56 Commits
56 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

purescript-numbers

Latest release Build status Pursuit

Utility functions for working with PureScripts builtin Number type.

Installation

spago install numbers

Scope

  • Parsing with fromString
  • Formating with toStringWith, see Data.Number.Format
  • Approximate comparisions with , see Data.Number.Approximate
  • Not-a-number and infinite value detection with isNaN and isFinite
  • Remainder with %
  • Trignometric functions with sin, cos, tan, asin, acos, atan, and atan2
  • Natural logarithm and exponents with log and exp
  • Powers with sqrt and pow
  • Rounding with ceil, floor, round, and trunc
  • Numeric minimum and maximum with min and max, which behave differently to the versions in Data.Ord on values of NaN
  • Sign and absolute value functions sign and abs
  • Numeric constants e, ln 2, ln10, log10e, log2e, pi, sqrt1_2, sqrt2, and tau

Documentation

Module documentation is published on Pursuit.

Morty Proxy This is a proxified and sanitized view of the page, visit original site.