**Fixed64** is a high-performance, cross-platform computation library built on top of a C++ WebAssembly (WASM) export using Emscripten (`emcc`). It offers consistent and reliable numerical operations essential for applications requiring precise floating-p
npm install fixed64-jsemcc). It offers consistent and reliable numerical operations essential for applications requiring precise floating-point arithmetic.
add(value: Fixed64 | string | number): Fixed64
const result = a.add(b);
sub(value: Fixed64 | string | number): Fixed64
const difference = a.sub(b);
mul(value: Fixed64 | string | number): Fixed64
const product = a.mul(b);
div(value: Fixed64 | string | number): Fixed64
const quotient = a.div(b);
equals(value: Fixed64 | string | number): boolean
if (a.equals(b)) { ... }
greaterThan(value: Fixed64 | string | number): boolean
const isGreater = a.greaterThan(b);
lessThan(value: Fixed64 | string | number): boolean
const isLess = a.lessThan(b);
greaterThanOrEqualTo(value: Fixed64 | string | number): boolean
const isGreaterOrEqual = a.greaterThanOrEqualTo(b);
lessThanOrEqualTo(value: Fixed64 | string | number): boolean
const isLessOrEqual = a.lessThanOrEqualTo(b);
static cos(value: Fixed64 | string | number): Fixed64
static sin(value: Fixed64 | string | number): Fixed64
static tan(value: Fixed64 | string | number): Fixed64
static max(...values: Array): Fixed64
static min(...values: Array): Fixed64
static sum(...values: Array): Fixed64