Skip to content

Commit

Permalink
Update number.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
rouzwelt committed Oct 23, 2024
1 parent 5b65481 commit 51b5f86
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions tauri-app/src/lib/utils/number.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,7 @@ export function bigintToFloat(value: bigint, decimals: number) {
}

/**
* Converts a bigint string 18point decimals value to a float string, optionally
* keeping the given number of decimals digits after "."
* Converts a bigint string value to a percentage with optionally given number of decimal points
* @param value - The bigint string value
* @param valueDecimals - The bigint string value decimals point
* @param decimalPoint - (optional) The number of digits to keep after "." in final result, defaults to valueDecimals
Expand Down

0 comments on commit 51b5f86

Please sign in to comment.