mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2026-04-26 19:14:32 +02:00
aa7facd4ba
* Remove the limitation unique args per script * Internal changes to how runningScripts are stored on the server, to make common usage faster.
8 lines
205 B
TypeScript
8 lines
205 B
TypeScript
/**
|
|
* Rounds a number to two decimal places.
|
|
* @param decimal A decimal value to trim to two places.
|
|
*/
|
|
export function roundToTwo(decimal: number): number {
|
|
return Math.round(decimal * 100) / 100;
|
|
}
|