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>

Static Public Member Functions

static int round_it (float to_round)
 returns the rounded integer value for "to_round". More...
 
static 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 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 58 of file math_ops.h.

◆ round_it() [1/2]

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

returns the rounded integer value for "to_round".

Definition at line 37 of file math_ops.h.

◆ round_it() [2/2]

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

returns the rounded integer value for "to_round".

Definition at line 28 of file math_ops.h.

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


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