Skip to content

Latest commit

 

History

History
31 lines (16 loc) · 655 Bytes

SPECIFICATION.md

File metadata and controls

31 lines (16 loc) · 655 Bytes

Overview

This document provides an overview of the Signed Integers library.

It outlines the use cases, i.e. specification, and describes how to implement the library.

Use Cases

The Signed Integers library can be used anytime a one needs negative numbers.

Public Functions

bits()

The size of this type in bits.

max()

The largest value that can be represented by this integer type.

min()

The smallest value that can be represented by this integer type.

neg_from

Helper function to get a negative value of an unsigned number

Basic arithmetic operations

+, -, *, /