# libbf.js **Repository Path**: kikoqiu/libbf.js ## Basic Information - **Project Name**: libbf.js - **Description**: No description available - **Primary Language**: JavaScript - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2021-07-21 - **Last Updated**: 2024-12-01 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # libbf.js libbf emscriptened * High precision floating point number library for browsers * Port LibBF Library from Fabrice Bellard to the browser envirenment by emscripten. * Better performance js bigfloat libraries with precision. * Not carefully tested. # Demo Try it here! https://kikoqiu.github.io/jslab/jslab.html # Envirenment * Runs in a browser * The WASM code loading requires an http server to work MIT license. Loot at https://bellard.org/libbf/ for more information. # Add Romberg Integration Support > Calc definite integral of 4/(1+x^2) from 0 to 1 > (Should be PI) ``` info={} rst=bfjs.helper.romberg( (x)=>bfjs.bf(4).div(x.mul(x).add(1)), 0,1,1e-40,1e-40,info); console.log(info+'') ``` # Usage See bf.html for usage. ```
```