24#ifndef __M_DECIMAL_H__
25#define __M_DECIMAL_H__
29#include <mstdlib/base/m_defs.h>
30#include <mstdlib/base/m_types.h>
M_int64 num
Definition: m_decimal.h:79
M_uint8 num_dec
Definition: m_decimal.h:80
M_int8 M_decimal_cmp(const M_decimal_t *dec1, const M_decimal_t *dec2)
void M_decimal_create(M_decimal_t *dec)
enum M_DECIMAL_RETVAL M_decimal_add(M_decimal_t *dest, const M_decimal_t *dec1, const M_decimal_t *dec2)
M_int64 M_decimal_to_int(const M_decimal_t *dec, M_uint8 implied_dec)
enum M_DECIMAL_RETVAL M_decimal_divide(M_decimal_t *dest, const M_decimal_t *dec1, const M_decimal_t *dec2, M_decimal_round_t round)
void M_decimal_duplicate(M_decimal_t *dest, const M_decimal_t *src)
M_DECIMAL_RETVAL
Definition: m_decimal.h:85
enum M_DECIMAL_RETVAL M_decimal_from_str(const char *string, size_t len, M_decimal_t *val, const char **endptr)
M_uint8 M_decimal_num_decimals(const M_decimal_t *dec)
void M_decimal_from_int(M_decimal_t *dec, M_int64 integer, M_uint8 implied_dec)
enum M_DECIMAL_RETVAL M_decimal_to_str(const M_decimal_t *dec, char *buf, size_t buf_len)
enum M_DECIMAL_RETVAL M_decimal_transform(M_decimal_t *dec, M_uint8 num_dec, M_decimal_round_t round)
enum M_DECIMAL_RETVAL M_decimal_subtract(M_decimal_t *dest, const M_decimal_t *dec1, const M_decimal_t *dec2)
M_decimal_round_t
Definition: m_decimal.h:95
enum M_DECIMAL_RETVAL M_decimal_multiply(M_decimal_t *dest, const M_decimal_t *dec1, const M_decimal_t *dec2)
void M_decimal_reduce(M_decimal_t *dec)
@ M_DECIMAL_OVERFLOW
Definition: m_decimal.h:87
@ M_DECIMAL_TRUNCATION
Definition: m_decimal.h:88
@ M_DECIMAL_INVALID
Definition: m_decimal.h:91
@ M_DECIMAL_SUCCESS
Definition: m_decimal.h:86
@ M_DECIMAL_ROUND_TRADITIONAL
Definition: m_decimal.h:97
@ M_DECIMAL_ROUND_BANKERS
Definition: m_decimal.h:98
@ M_DECIMAL_ROUND_NONE
Definition: m_decimal.h:96
Definition: m_decimal.h:78