<commit_before>#ifndef __MATH_H__
#define __MATH_H__

#ifndef PRE_POINT_DIGITS
	#define PRE_POINT_DIGITS  2
#endif
#ifndef POST_POINT_DIGITS
	#define POST_POINT_DIGITS 200
#endif

#define DOUBLE_POST_POINT_DIGITS (POST_POINT_DIGITS*2)

#define PRECISION (PRE_POINT_DIGITS + POST_POINT_DIGITS)
#define DOUBLE_PRECISION (PRE_POINT_DIGITS + DOUBLE_POST_POINT_DIGITS)


// 123.456 ---> memory layout: [6][5][4].[3][2][1]
typedef uint8_t fpn_t[PRECISION]; // little endian
typedef uint8_t dfpn_t[DOUBLE_PRECISION]; // little endian


typedef enum {
	OK=1,
	ERROR_OVERFLOW=2,
	ERROR_UNDERFLOW=3
} error_e;<commit_msg>add new error state for divisions by zero<commit_after>#ifndef __MATH_H__
#define __MATH_H__

#ifndef PRE_POINT_DIGITS
	#define PRE_POINT_DIGITS  2
#endif
#ifndef POST_POINT_DIGITS
	#define POST_POINT_DIGITS 200
#endif

#define DOUBLE_POST_POINT_DIGITS (POST_POINT_DIGITS*2)

#define PRECISION (PRE_POINT_DIGITS + POST_POINT_DIGITS)
#define DOUBLE_PRECISION (PRE_POINT_DIGITS + DOUBLE_POST_POINT_DIGITS)


// 123.456 ---> memory layout: [6][5][4].[3][2][1]
typedef uint8_t fpn_t[PRECISION]; // little endian
typedef uint8_t dfpn_t[DOUBLE_PRECISION]; // little endian


typedef enum {
	OK=1,
	ERROR_OVERFLOW=2,
	ERROR_UNDERFLOW=3,
	ERROR_DIVBYZERO=4
} error_e;
{'fraction_non_alphanumeric': 0.09921259842519685, 'fraction_numerical': 0.03543307086614173, 'mean_word_length': 6.656626506024097, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5634942', 'n_tokens_mistral': 587, 'n_tokens_neox': 511, 'n_words': 101}