limited automatic util tests, various fixes - v1.0.8

This commit is contained in:
stjet
2025-01-20 23:30:29 +00:00
parent 89165e3868
commit b311029cfb
76 changed files with 330 additions and 151 deletions

View File

@@ -158,6 +158,8 @@ export function raw_to_whole(raw: bigint, decimals = BANANO_DECIMALS): Whole {
if (whole_string.slice(-1) === "0" || dot) {
whole_string = whole_string.slice(0, -1);
if (dot) break;
} else {
break;
}
}
return whole_string as Whole;