Home
last modified time | relevance | path

Searched refs:rpn (Results 1 – 4 of 4) sorted by relevance

/reactos/base/applications/calc/
H A Dutl_ieee.c23 void prepare_rpn_result_2(calc_number_t *rpn, TCHAR *buffer, int size, int base) in prepare_rpn_result_2() argument
30 StringCchPrintf(buffer, size, _T("%I64X"), rpn->i); in prepare_rpn_result_2()
41 width = (rpn->f==0) ? 1 : (int)log10(fabs(rpn->f))+1; in prepare_rpn_result_2()
43 StringCchPrintf(buffer, size, _T("%#.*e"), MAX_LD_WIDTH-1, rpn->f); in prepare_rpn_result_2()
47 …ptr, NULL, 0, _T("%#*.*f"), width, ((MAX_LD_WIDTH-width-1)>=0) ? MAX_LD_WIDTH-width-1 : 0, rpn->f); in prepare_rpn_result_2()
64 StringCchPrintf(buffer, size, _T("%I64o"), rpn->i); in prepare_rpn_result_2()
67 if (rpn->i == 0) { in prepare_rpn_result_2()
72 tmp = *rpn; in prepare_rpn_result_2()
H A Dutl_mpfr.c23 void prepare_rpn_result_2(calc_number_t *rpn, TCHAR *buffer, int size, int base) in prepare_rpn_result_2() argument
34 mpfr_get_z(zz, rpn->mf, MPFR_DEFAULT_RND); in prepare_rpn_result_2()
35 mpfr_get_f(ff, rpn->mf, MPFR_DEFAULT_RND); in prepare_rpn_result_2()
57 mpfr_abs(t, rpn->mf, MPFR_DEFAULT_RND); in prepare_rpn_result_2()
84 if (rpn_is_zero(rpn)) { in prepare_rpn_result_2()
H A Dcalc.h270 void prepare_rpn_result_2(calc_number_t *rpn, TCHAR *buffer, int size, int base);
H A Dwinmain.c651 static void prepare_rpn_result(calc_number_t *rpn, TCHAR *buffer, int size, int base) in prepare_rpn_result() argument
658 prepare_rpn_result_2(rpn, buffer, size, base); in prepare_rpn_result()
661 static void set_rpn_result(HWND hwnd, calc_number_t *rpn) in set_rpn_result() argument
664 prepare_rpn_result(rpn, calc.buffer, SIZEOF(calc.buffer), calc.base); in set_rpn_result()
670 static void display_rpn_result(HWND hwnd, calc_number_t *rpn) in display_rpn_result() argument
672 set_rpn_result(hwnd, rpn); in display_rpn_result()