get the smallest decimal string representation if the value is less than what can be represented with the given decimals
Optional
only works with string which is a valid number and not a string bigint
getSmallest('100', 2) // '100'getSmallest('0.009', 2) // '< 0.01'getSmallest('-0.007', 2) // '< -0.09' Copy
getSmallest('100', 2) // '100'getSmallest('0.009', 2) // '< 0.01'getSmallest('-0.007', 2) // '< -0.09'
get the smallest decimal string representation if the value is less than what can be represented with the given decimals