import "util/double";
This class allows to work easilly with 64-bit floats.
Supported operators:
+
,
-
,
*
,
/
,
<
,
>
,
<=
,
>=
,
==
,
!=
,
+=
,
-=
,
*=
,
/=
with Double, Float, Integer and Long types.
A short variant of the constructors is available: Double(...)
var lo: Integer;
var hi: Integer;
static function create(): Double
static function create(value: Float): Double
static function create(lo: Integer, hi: Integer): Double
static function from_int(value: Integer): Double
static function from_long(value: Long): Double
static function from_string(s: String): Double
function set(other: Double): Double
function set_int(value: Integer): Double
function set_long(value: Long): Double
function set_float(value: Float): Double
function set_string(s: String): Double
function set_raw(lo: Integer, hi: Integer): Double
function dup(): Double
function add(other: Double): Double
function add_int(value: Integer): Double
function add_long(value: Long): Double
function add_float(value: Float): Double
function sub(other: Double): Double
function sub_int(value: Integer): Double
function sub_long(value: Long): Double
function sub_float(value: Float): Double
function mul(other: Double): Double
function mul_int(value: Integer): Double
function mul_long(value: Long): Double
function mul_float(value: Float): Double
function div(other: Double): Double
function div_int(value: Integer): Double
function div_long(value: Long): Double
function div_float(value: Float): Double
function neg(): Double
function set_min(a: Double, b: Double): Double
function set_max(a: Double, b: Double): Double
function min(other: Double): Double
function min_float(value: Float): Double
function max(other: Double): Double
function max_float(value: Float): Double
function floor(): Double
function ceil(): Double
function round(): Double
function get_round_int(): Integer
function get_round_long(): Long
function pow(other: Double): Double
function pow_float(value: Float): Double
function sqrt(): Double
function cbrt(): Double
function exp(): Double
function ln(): Double
function log2(): Double
function log10(): Double
function sin(): Double
function cos(): Double
function asin(): Double
function acos(): Double
function tan(): Double
function atan(): Double
function atan2(x: Double): Double
function set_atan2(y: Double, x: Double): Double
function is_zero(): Boolean
function cmp_lt(other: Double): Boolean
function cmp_lt_int(value: Integer): Boolean
function cmp_lt_long(value: Long): Boolean
function cmp_lt_float(value: Float): Boolean
function cmp_le(other: Double): Boolean
function cmp_le_int(value: Integer): Boolean
function cmp_le_long(value: Long): Boolean
function cmp_le_float(value: Float): Boolean
function cmp_gt(other: Double): Boolean
function cmp_gt_int(value: Integer): Boolean
function cmp_gt_long(value: Long): Boolean
function cmp_gt_float(value: Float): Boolean
function cmp_ge(other: Double): Boolean
function cmp_ge_int(value: Integer): Boolean
function cmp_ge_long(value: Long): Boolean
function cmp_ge_float(value: Float): Boolean
function cmp_eq(other: Double): Boolean
function cmp_eq_int(value: Integer): Boolean
function cmp_eq_long(value: Long): Boolean
function cmp_eq_float(value: Float): Boolean
function cmp_ne(other: Double): Boolean
function cmp_ne_int(value: Integer): Boolean
function cmp_ne_long(value: Long): Boolean
function cmp_ne_float(value: Float): Boolean
function to_int(): Integer
function to_long(): Long
function to_float(): Float
function to_string(): String