Home Manual Reference Source

:1234: @arithmetic-type/double


de:User:Venusianer / GNU FDL

64-bit float arithmetic for JavaScript. See docs. Parent is js-library.

import {add, mul, sub, div} from '@arithmetic-type/double';
add(0.1, 0.2); // 0.30000000000000004
mul(0.1, 0.2); // 0.020000000000000004
sub(0.1, 0.2); // -0.1
div(0.1, 0.2); // 0.5

License Version Tests Dependencies GitHub issues Downloads

Code issues Code maintainability Code coverage (cov) Code technical debt Documentation Package size