All Projects → plow-technologies → bs-Zarith

plow-technologies / bs-Zarith

Licence: other
Support Bigint, Q (rational numbers) and Z (integer numbers) in BuckleScript.

Programming Languages

javascript
184084 projects - #8 most used programming language
ocaml
1615 projects
Standard ML
205 projects

Projects that are alternatives of or similar to bs-Zarith

ideas-for-project-names-starting-with-re
No description or website provided.
Stars: ✭ 27 (+80%)
Mutual labels:  reasonml
bs-immutablejs
Reason + BuckleScript bindings to Immutable.js
Stars: ✭ 28 (+86.67%)
Mutual labels:  reasonml
Reason-react-hooks
🧶 Some hooks in ReasonML for reason-react that can be useful
Stars: ✭ 14 (-6.67%)
Mutual labels:  reasonml
sonos-wejay
Slack integration for a local Sonos system
Stars: ✭ 19 (+26.67%)
Mutual labels:  reasonml
reform
📋 Reasonably making forms sound good
Stars: ✭ 345 (+2200%)
Mutual labels:  reasonml
ppx rapper
Syntax extension for writing SQL in OCaml
Stars: ✭ 91 (+506.67%)
Mutual labels:  reasonml
remachine
[WIP] Reason pattern matching viz
Stars: ✭ 44 (+193.33%)
Mutual labels:  reasonml
reactor
🚀 Native Actors for Reason and OCaml
Stars: ✭ 70 (+366.67%)
Mutual labels:  reasonml
reason-vue
ReasonML and Vue
Stars: ✭ 55 (+266.67%)
Mutual labels:  reasonml
reasonml-minimal-config
ReasonML minimal webpack config with webpack-dashboard & reports enabled
Stars: ✭ 16 (+6.67%)
Mutual labels:  reasonml
reasonml-tic-tac-toe
www.imandra.ai
Stars: ✭ 19 (+26.67%)
Mutual labels:  reasonml
JsonCodec
JSON combinator library for BuckleScript/Reason
Stars: ✭ 38 (+153.33%)
Mutual labels:  reasonml
genTypeScript
Auto generation of type-safe bindings between Reason and Typescript.
Stars: ✭ 75 (+400%)
Mutual labels:  reasonml
ogaml
Ocaml multimedia library
Stars: ✭ 28 (+86.67%)
Mutual labels:  reasonml
SwiftRadix
Easily convert integers to binary/hex/octal strings and back again with clean functional syntax.
Stars: ✭ 34 (+126.67%)
Mutual labels:  integer
rx-reason
Reactive programming library for ReasonML/OCaml
Stars: ✭ 49 (+226.67%)
Mutual labels:  reasonml
gobi
Compile OCaml/Reason to static iOS libraries
Stars: ✭ 25 (+66.67%)
Mutual labels:  reasonml
id-mask
IDMask is a Java library for masking internal ids (e.g. from your DB) when they need to be published to hide their actual value and to prevent forging. It has support optional randomisation has a wide support for various Java types including long, UUID and BigInteger. This library bases its security on strong cryptographic primitives.
Stars: ✭ 39 (+160%)
Mutual labels:  integer
hello-ppx-esy
A simple example of a ppx with Reason and esy
Stars: ✭ 38 (+153.33%)
Mutual labels:  reasonml
nim-nint128
128-bit integers
Stars: ✭ 17 (+13.33%)
Mutual labels:  integer

bs-zarith

The API is stable, but there is not a lot of testing. Use with caution.

Bigint

let x = Bigint.of_string "1000000000000000000000000000000000000000" in
let y = Bigint.of_int 1 in
let z = Bigint.(y + x) in
Js.log(Bigint.to_string(z));

Z

let x = Z.Int64.of_string "230000232323322323" in
let y = Z.Int64.of_int 3 in
let z = Z.Int64.(x - y) in
Js.log(Z.Int64.to_string(z));

Q

let x = Q.Int.of_string "1/2" in
let y = Q.Int.make (Z.Int.one) (Z.Int.of_int 2)
let z = Q.Int.sub x y
Js.log(Q.Int.to_string(z));
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].