diff --git a/docs/pages/library/utils.mdx b/docs/pages/library/utils.mdx index 4f69c83..bcbd2e9 100644 --- a/docs/pages/library/utils.mdx +++ b/docs/pages/library/utils.mdx @@ -223,4 +223,10 @@ unitToPlanck(42, 0) // 42n unitToPlanck("100000", -6) // 0n unitToPlanck("", 8) // 0n unitToPlanck("invalid&#l-", 4) // 0n + +// Valid when unit value is decimals + 1. +unitToPlanck("0.0001", 4) // 1n + +// Invalid when units are smaller than decimals - returns zero. +unitToPlanck("0.0001", 3) // 0n ``` \ No newline at end of file