# Fixed Point Maths

## version 5 by Michael Callaghan

**Version 5 of Fixed Point Maths (for Glulx only) by Michael Callaghan begins here.**

- Chapter 1 - Basic definitions
- Chapter 2 - Internal functions
- Section 1 - Printing a fixed point number
- Section 2 - Finding the greater part of a number
- Section 3 - Finding the lesser part of a number
- Section 4 - Finding the aggregate of a number
- Chapter 3 - Basic functions to convert numbers
- Section 1 - Int function converts to the nearest integer
- Section 2 - Round up (rounds up to nearest integer)
- Section 3 - Round down (rounds down to the nearest integer)
- Section 4 - Absolute value of a fixed point number (converts negatives to positives)
- Section 5 - Absolute value of a number (converts negatives to positives)
- Section 6 - Convert number to floating point
- Section 7 - Change the sign of a fixed point number
- Section 8 - Change the sign of a number
- Chapter 4 - Comparisons
- Section 1 - Equals
- Section 2 - Greater than
- Section 3 - Less than
- Section 4 - Deciding if a fixed point number is negative
- Chapter 5 - Addition
- Section 1 - Addition of two fixed point numbers
- Section 2 - Addition of a fixed point number and an integer
- Chapter 6 - Subtraction
- Section 1 - Subtraction of two fixed point numbers
- Section 2 - Subtraction of a fixed point number and an integer
- Chapter 7 - Multiplication
- Section 1 - Multiplication of two fixed point numbers
- Section 2 - Multiplication of a number and a fixed point number
- Chapter 8 - Division
- Section 1 - Division of one fixed point number by another fixed point number
- Section 2 - Division of one fixed point number by an integer
- Section 3 - Division of one number by a fixed point number
- Chapter 9 - Some mathematical functions
- Section 1 - Inverse
- Section 2 - Factorial
- Section 3 - Simple powers
- Section 4 - Square roots
- Section 5 - Degrees to radians and radians to degrees
- Section 6 - Sines
- Section 7 - Cosines
- Section 8 - Tangents
- Section 9 - Natural logarithms
- Section 10 - Exponential function
- Chapter 10 - Converting text to a real number