feisty meow concerns codebase  2.140
mathematics::math_ops Class Reference

A grab-bag of mathematical functions that are frequently useful. More...

#include <math_ops.h>

Public Types

typedef signed long long fat_int
 

Static Public Member Functions

static fat_int round_it (float to_round)
 returns the rounded integer value for "to_round". More...
 
static fat_int round_it (double to_round)
 returns the rounded integer value for "to_round". More...
 
static basis::un_int factorial (int n)
 returns n! (factorial), which is n * (n - 1) * (n - 2) ... More...
 

Detailed Description

A grab-bag of mathematical functions that are frequently useful.

Definition at line 24 of file math_ops.h.

Member Typedef Documentation

◆ fat_int

typedef signed long long mathematics::math_ops::fat_int

Definition at line 27 of file math_ops.h.

Member Function Documentation

◆ factorial()

static basis::un_int mathematics::math_ops::factorial ( int  n)
inlinestatic

returns n! (factorial), which is n * (n - 1) * (n - 2) ...

Definition at line 61 of file math_ops.h.

◆ round_it() [1/2]

static fat_int mathematics::math_ops::round_it ( double  to_round)
inlinestatic

returns the rounded integer value for "to_round".

Definition at line 40 of file math_ops.h.

◆ round_it() [2/2]

static fat_int mathematics::math_ops::round_it ( float  to_round)
inlinestatic

returns the rounded integer value for "to_round".

Definition at line 31 of file math_ops.h.

Referenced by mathematics::double_plus::truncate().


The documentation for this class was generated from the following file: