Skip to content

10xEngineersQualityProgramming/is-13

 
 

Repository files navigation

Special thanks to @casdr for the logo]

What is 13?

It's that feeling in the morning where you thought you ran out of eggs but you open the fridge and there's 12 more, plus one extra. "13" is the big-endian positional-decimal-numeral representation of the unary-numeral "1111111111111", which when compressed via symbolic computation becomes "1111! / 11 + 1" or "1111 ^ 11 - 111" or "111 ^ 11 + 1111". This means the numerical value represented by the base 10 string "13" is an integer of the algebraic form b ^ c - a = (b - n) ^ c + (a + n) where n := 1, which makes it special.

But what is a number? [insert Moon Men theme] well, a number is an abstract object which corresponds to a certain quantity, it can be a whole (integer) quantity, or a fractional (rational) quantity. Numbers can also be irrational, but they are also somewhat fractional in nature. But then, isn't "13" a number? actually no, "13" (as we saw earlier) is just a numeral. But what is a numeral? A numeral is just the graphical, written, or spoken representation of a numerical value. This is very helpful because numbers can't be seen, unless of course you write them in unary notation... But is unary really the closest we can get to "seeing numbers"? We don't know... yet

And as always, thanks for watching reading

And as always, thanks for watching reading

is-13

An npm package to check if a number is equal to 13. Based on is-thirteen

Installation

npm --save i is-13

or

yarn add is-13
const is = require('is-13');
// Now with elegant syntax.

is(13).thirteen(); // true
is(12.8).roughly.thirteen(); // true
is(6).within(10).of.thirteen(); // true
is(2011).yearOfBirth(); // true

// check your math skillz
is(4).plus(5).thirteen();      // false
is(12).plus(1).thirteen();    // true
is(4).minus(12).thirteen();    // false
is(14).minus(1).thirteen();    // true
is(1).times(8).thirteen();    // false
is(26).divideby(2).thirteen();  // true

Test

npm test

License

A helpful tool by tj-commits, originally by Jezen Thomas, with helpful help from Gytis Daujotas and many fine folk.

You are allowed to sell this on a CD Rom.

About

Check if a number is equal to 13.

Resources

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 87.6%
  • Python 12.4%