@eagleoutice/flowr
Version:
Static Dataflow Analyzer and Program Slicer for the R Programming Language
10 lines (9 loc) • 408 B
TypeScript
/**
* Converts a bigint (or string representation of a bigint) to a number by removing the trailing `n`.
* Please note that this can lead to loss of precision for very large bigints.
*/
export declare function bigint2number(a: bigint | string): number;
/**
* Rounds a number to the specified number of decimal places.
*/
export declare function roundToDecimals(value: number, decimals: number): number;