Skip to content

rgrempel/purescript-int-53

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

41 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Latest release Dependency Status Build Status

purescript-int-53

Purescript's built-in Int type is restricted to 32-bit integers. However, the Javascript runtime is capable of working with 53-bit integers. So, this module provides an Int53 type, for cases where you want all 53 bits (from -9,007,199,254,740,991 to 9,007,199,254,740,991).

For even larger numbers, consider purescript-bigints, or purescript-hugenums. The advantage of purescript-int-53 over those is that purescript-int-53 is likely to be faster, since it provides a "thinner" wrapper over the underlying Javascript operations.

Installation

Try bower install purescript-int-53

Development

Try something like:

git clone https://github.com/rgrempel/purescript-int-53
npm install
bower install
npm test

API

Documentation for the API can be found on Pursuit. Or, if you are already looking at Pursuit, then below ...