This package contains various functions on floating point numbers of single precision, double precision, and long double precision.
typedef g0float_aop_type (tk:tk) = (g0float(tk), g0float(tk)) -<fun0> g0float(tk)
typedef g0float_cmp_type (tk:tk) = (g0float(tk), g0float(tk)) -<fun0> bool
fun
{tk:tk}
g0float_add : g0float_aop_type(tk)
fun
{tk:tk}
g0float_sub : g0float_aop_type(tk)
fun
{tk:tk}
g0float_mul : g0float_aop_type(tk)
fun
{tk:tk}
g0float_div : g0float_aop_type(tk)
fun
{tk:tk}
g0float_mod : g0float_aop_type(tk)
fun
{tk:tk}
g0float_lt : g0float_cmp_type(tk)
fun
{tk:tk}
g0float_lte : g0float_cmp_type(tk)
fun
{tk:tk}
g0float_gt : g0float_cmp_type(tk)
fun
{tk:tk}
g0float_gte : g0float_cmp_type(tk)
fun
{tk:tk}
g0float_eq : g0float_cmp_type(tk)
fun
{tk:tk}
g0float_neq : g0float_cmp_type(tk)
fun
{tk:tk}
g0float_max : g0float_aop_type(tk)
fun
{tk:tk}
g0float_min : g0float_aop_type(tk)
fun fprint_float : fprint_type (float) = "mac#%"
fun print_float (float): void = "mac#%"
fun prerr_float (float): void = "mac#%"
fun fprint_double : fprint_type (double) = "mac#%"
fun print_double (double): void = "mac#%"
fun prerr_double (double): void = "mac#%"
fun fprint_ldouble : fprint_type (ldouble) = "mac#%"
fun print_ldouble (ldouble): void = "mac#%"
fun prerr_ldouble (ldouble): void = "mac#%"
overload ~ with g0float_neg of 0 // ~ for uminus
overload neg with g0float_neg of 0
overload abs with g0float_abs of 0
overload succ with g0float_succ of 0
overload pred with g0float_pred of 0
Synopsis for [half] is unavailable.
overload + with g0float_add of 0
overload + with add_int_float of 0
overload + with add_float_int of 0
overload + with add_int_double of 0
overload + with add_double_int of 0
overload - with g0float_sub of 0
overload - with sub_int_float of 0
overload - with sub_float_int of 0
overload - with sub_int_double of 0
overload - with sub_double_int of 0
overload * with g0float_mul of 0
overload * with mul_int_float of 0
overload * with mul_float_int of 0
overload * with mul_int_double of 0
overload * with mul_double_int of 0
overload / with g0float_div of 0
overload / with div_int_float of 0
overload / with div_float_int of 0
overload / with div_int_double of 0
overload / with div_double_int of 0
overload mod with g0float_mod of 0
overload < with g0float_lt of 0
overload < with lt_int_float of 0
overload < with lt_float_int of 0
overload < with lt_int_double of 0
overload < with lt_double_int of 0
overload <= with g0float_lte of 0
overload <= with lte_int_float of 0
overload <= with lte_float_int of 0
overload <= with lte_int_double of 0
overload <= with lte_double_int of 0
overload > with g0float_gt of 0
overload > with gt_int_float of 0
overload > with gt_float_int of 0
overload > with gt_int_double of 0
overload > with gt_double_int of 0
overload >= with g0float_gte of 0
overload >= with gte_int_float of 0
overload >= with gte_float_int of 0
overload >= with gte_int_double of 0
overload >= with gte_double_int of 0
overload = with g0float_eq of 0
overload = with eq_int_float of 0
overload = with eq_float_int of 0
overload = with eq_int_double of 0
overload = with eq_double_int of 0
overload != with g0float_neq of 0
overload != with neq_int_float of 0
overload != with neq_float_int of 0
overload != with neq_int_double of 0
overload != with neq_double_int of 0
overload compare with g0float_compare of 0
overload max with g0float_max of 0
overload min with g0float_min of 0
overload print with print_float
overload print with print_double
overload print with print_ldouble
overload prerr with prerr_float
overload prerr with prerr_double
overload prerr with prerr_ldouble
overload fprint with fprint_float
overload fprint with fprint_double
overload fprint with fprint_ldouble
This page is created with ATS by Hongwei Xi and also maintained by Hongwei Xi. |