Go to file
Jeff 3e14a77a5e Okay, someone else made something called numeric-types already 2024-02-28 23:05:12 -05:00
src Remove WIP Subtraction, clean up unused types 2024-02-28 22:37:52 -05:00
.gitignore Add two numbers together 2024-02-12 01:34:53 -05:00
README.md Okay, someone else made something called numeric-types already 2024-02-28 23:05:12 -05:00
license Add a license 2024-02-12 01:58:20 -05:00
package-lock.json Add two numbers together 2024-02-12 01:34:53 -05:00
package.json Okay, someone else made something called numeric-types already 2024-02-28 23:05:12 -05:00
tsconfig.json Add two numbers together 2024-02-12 01:34:53 -05:00

README.md

Math Types

A typescript library that aims to provide performant arithmetic types.

Limitations

Currently math-types does not support negative numbers, decimals, or bigints.

Types

Add<A extends number, B extends number>

Resolves to the sum of A and B The corresponding function add uses this type

Max<A extends number, B extends number>

Resolves to the larger of A and B The corresponding function max uses this type

Current Roadmap

  • Subtraction
  • Support negative numbers
  • Support decimal numbers
  • Multiplication
  • Division