Searched defs:number_t (Results 1 – 3 of 3) sorted by relevance
218 struct number_t struct220 void set_int (int v) { value = v; } in set_int()221 int to_int () const { return value; } in to_int()223 void set_fixed (int32_t v) { value = v / 65536.0; } in set_fixed()224 int32_t to_fixed () const { return value * 65536.0; } in to_fixed()226 void set_real (double v) { value = v; } in set_real()227 double to_real () const { return value; } in to_real()229 bool in_int_range () const in in_int_range()232 bool operator > (const number_t &n) const { return value > n.to_real (); } in operator >()233 bool operator < (const number_t &n) const { return n > *this; } in operator <()[all …]
27 } number_t; typedef
35 typedef float number_t; typedef